AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

PasswordValidationRules.php 736B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Concerns;
  3. use Illuminate\Contracts\Validation\ValidationRule;
  4. use Illuminate\Validation\Rules\Password;
  5. trait PasswordValidationRules
  6. {
  7. /**
  8. * Get the validation rules used to validate passwords.
  9. *
  10. * @return array<int, Password|ValidationRule|array<mixed>|string>
  11. */
  12. protected function passwordRules(): array
  13. {
  14. return ['required', 'string', Password::default(), 'confirmed'];
  15. }
  16. /**
  17. * Get the validation rules used to validate the current password.
  18. *
  19. * @return array<int, Password|ValidationRule|array<mixed>|string>
  20. */
  21. protected function currentPasswordRules(): array
  22. {
  23. return ['required', 'string', 'current_password'];
  24. }
  25. }