User Update Password Validation in Laravel
You will often need to mark your optional fields. like user form update time user password only check 6 digits not required. so nullable rules use.
Now use nullable rule.
For example :
$this->validate($request,[ 'name' => 'required', 'email' => 'required|email', 'password' => 'nullable|min:6', ] );
In this Optional Fields example, we are specifying that the password field may be either null or a valid 6 digit number representation.