You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }