We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Want to use: https://laravel.com/docs/8.x/validation#validating-passwords.
Use:
'password' => [Password::min()],
Frontend validator don't recognize that rule.
The text was updated successfully, but these errors were encountered:
Suggest to use #505 as that will work with unsupported rules
Sorry, something went wrong.
Use new password rules as callback like:
return [ 'password' => [ 'required', function ($attribute, $value, $fail) { $rule = new Password(10); $rule->setData(['password' => $value]); $rule->uncompromised()->letters()->numbers()->mixedCase(); $passes = $rule->passes('password', $value); $messages = $rule->message(); if (!$passes) { $fail(__($messages[0])); } }, ], ];
No branches or pull requests
Subject of the issue
Want to use: https://laravel.com/docs/8.x/validation#validating-passwords.
Your environment
Steps to reproduce
Use:
Expected behaviour
Want to use: https://laravel.com/docs/8.x/validation#validating-passwords.
Actual behaviour
Frontend validator don't recognize that rule.
The text was updated successfully, but these errors were encountered: