I am working on setting up a password confirmation field in my Laravel Nova resource.
In the AppServiceProvided.php I have:
use IlluminateValidationRulesPassword;
Password::defaults(function () {
return Password::min(8)
->letters()
->numbers()
->symbols()
->mixedCase();
});
In my User.php I have:
Password::make(__('Password'))
->onlyOnForms()
->creationRules('required', RulesPassword::defaults())
->updateRules('nullable', RulesPassword::defaults()),
PasswordConfirmation::make('Password Confirmation'),
However, with these fields I am able to enter two different passwords and still submit the form.