Answers for "laravel validate email part of users"

PHP
0

email validation in laravel

'user.email' => 'required|email|unique:users,email,'.$user->id,
//@sujay
Posted by: Guest on October-09-2020
0

email validation in laravel

$validator = Validator::make($request->all(), []);

 $validator->sometimes('email', 'unique:users,email', function ($input) {
            return $input->email !== Auth::user()->email;
        });
//@sujay
Posted by: Guest on October-09-2020

Code answers related to "laravel validate email part of users"

Browse Popular Code Answers by Language