123456789101112131415161718192021 |
- <?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 UserValidate extends Validate
- {
- protected $rule = [
- ['user_name', 'unique:user', '管理员已经存在']
- ];
- }
|