PasswordValidationRules.php 331 B

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
  10. */
  11. protected function passwordRules()
  12. {
  13. return ['required', 'string', new Password, 'confirmed'];
  14. }
  15. }