Hello Artisan,
In this Laravel tutorial, I will share password and confirm password validation in laravel source code with you. If you don't know the validation process of confirm password validation in laravel then this example is for you.
I am here to share with you laravel password confirmation doesnt match source code so that you can implement it on your site. So let's see the example code of laravel validation confirm password.
Use this in you controller:
$request->validate([
'password' => 'required|confirmed|min:6'
]);
And finally, we have to make sure the password field used to input confirmation from user must be named password_confirmation
.
Read also: Laravel Optional Field Validation Example Tutorial
Hope it can help you.
#laravel #laravel-8x