I am trying to using confirm password validation. I applied correct rules. But when it validates then it give me validation error like below: The password confirmation does not match. Controller
public function register(Request $req){
$this->validate($req,[
'Password' => 'required|confirmed|min:3'
]);
}
what is your password confirmation field name because |confirmed| always work with laravel naming conversions For example, if the field under validation is password, a matching password_confirmation field must be present in the input.
is that your input name is password_confirmation ?? if not do that else comment me more code please so i can help you..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With