1234567891011121314151617181920212223 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- class AssetCate extends Validate{
- protected $rule = [
- 'title|名称' => 'require|length:1,100',
- ];
- protected $message = [
- 'title.length' => '名称必须100字以内',
- ];
- protected $scene = [
- 'add' => ['name'],
- 'edit' => ['name']
- ];
- }
|