Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

email validation in laravel

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

 $validator->sometimes('email', 'unique:users,email', function ($input) {
            return $input->email !== Auth::user()->email;
        });
//@sujay
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #email #validation #laravel
ADD COMMENT
Topic
Name
5+1 =