1234567891011121314151617181920212223 |
- <?php
- // +----------------------------------------------------------------------
- // | snake
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
- // +----------------------------------------------------------------------
- // | Author: NickBai <1902822973@qq.com>
- // +----------------------------------------------------------------------
- namespace app\index\validate;
- use think\Validate;
- class RoleValidate extends Validate
- {
- protected $rule = array(
- 'role_name' => 'require|unique:role',
- );
- protected $message = array(
- 'role_name.require' => '角色已经存在',
- );
- }
|