12345678910111213141516171819202122 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- class House extends Validate{
- protected $rule = [
- 'area_id|小区' => 'require',
- 'cate|资源类型' => 'require',
- 'title|名称' => 'require|length:1,200',
- ];
- protected $message = [
- 'title.length' => '名称必须200字以内',
- ];
- protected $scene = [
- ];
- }
|