123456789101112131415161718 |
- <?php
- namespace catchAdmin\permissions\request;
- use catchAdmin\permissions\model\Users;
- use catcher\base\CatchRequest;
- class ProfileRequest extends CatchRequest
- {
- protected function rules(): array
- {
- // TODO: Implement rules() method.
- return [
- 'username|用户名' => 'require|unique:'.Users::class.',username,' . $this->user()->id,
- 'email|邮箱' => 'email|unique:'.Users::class . ',email,' . $this->user()->id,
- ];
- }
- }
|