Answers for "how to validate confirm password in laravel validate"

PHP
10

confirm password validation laravel

'password' => 'required|confirmed',

reference : https://laravel.com/docs/4.2/validation#rule-confirmed

The field under validation must have a matching field of foo_confirmation. 
For example, if the field under validation is password, a matching
password_confirmation field must be present in the input.
Posted by: Guest on August-02-2020
1

validate password laravel

$request->validate([
            'email' =>'required|exists:users',
            'password'=>'required|password'
        ]);
Posted by: Guest on July-07-2021

Code answers related to "how to validate confirm password in laravel validate"

Browse Popular Code Answers by Language