UpdateRequest.php 484 B

12345678910111213141516171819
  1. <?php
  2. namespace catchAdmin\permissions\request;
  3. use catchAdmin\permissions\model\Users;
  4. use catcher\base\CatchRequest;
  5. class UpdateRequest extends CatchRequest
  6. {
  7. protected function rules(): array
  8. {
  9. // TODO: Implement rules() method.
  10. return [
  11. 'username|用户名' => 'require|max:20|unique:'.Users::class,
  12. 'password|密码' => 'sometimes|min:5|max:12',
  13. 'email|邮箱' => 'email|unique:'.Users::class,
  14. ];
  15. }
  16. }