Password confirmation doesnot match?

Viewed 6140

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'
          ]);

    }
1 Answers

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..

Related