您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

PasswordValidationRules.php 395B

123456789101112131415161718
  1. <?php
  2. namespace App\Actions\Fortify;
  3. use Laravel\Fortify\Rules\Password;
  4. trait PasswordValidationRules
  5. {
  6. /**
  7. * Get the validation rules used to validate passwords.
  8. *
  9. * @return array<int, \Illuminate\Contracts\Validation\Rule|array|string>
  10. */
  11. protected function passwordRules(): array
  12. {
  13. return ['required', 'string', new Password, 'confirmed'];
  14. }
  15. }