chaoyu/app/validate/Article.php

16 lines
297 B
PHP
Raw Permalink Normal View History

2022-09-16 03:44:40 +00:00
<?php
namespace app\validate;
use think\Validate;
class Article extends Validate
{
protected $rule = [
'title' => 'require',
'link' => 'url'
];
protected $message = [
'title.require' => '标题必须',
'link.url' => '请填写有效的网址'
];
}