12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\common\validate;
- use think\Db;
- use think\Validate;
- class MateCate extends Validate
- {
- /**
- * 定义验证规则
- * 格式:'字段名' => ['规则1','规则2'...]
- *
- * @var array
- */
- protected $rule = [
- 'title|名称' => 'require',
- ];
- /**
- * 定义错误信息
- * 格式:'字段名.规则名' => '错误信息'
- *
- * @var array
- */
- protected $message = [];
- }
|