CreateRequest.php 573 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace catchAdmin\permissions\request;
  3. use catchAdmin\permissions\model\Users;
  4. use catcher\base\CatchRequest;
  5. class CreateRequest 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|密码' => 'require|min:5|max:12',
  13. 'email|邮箱' => 'email|unique:'.Users::class,
  14. ];
  15. }
  16. protected function message()
  17. {
  18. // TODO: Implement message() method.
  19. }
  20. }