Answers for "laravel validator unique email"

PHP
1

laravel validation unique email

'email' => 'unique:users,email_address,'.$user->id
Posted by: Guest on April-16-2021
3

email validation in laravel

'email' => 'required|email|unique:users,email',
//@sujay
Posted by: Guest on October-09-2020
1

laravel unique validation

unique:table,column,except,idColumn

############## Example : ################

############### For Updating  
//rules
'email' => 'unique:users,email_address,' . $userId,

############### For Creating 
//rules
'email' => 'unique:users,email_address',
Posted by: Guest on October-26-2020

Browse Popular Code Answers by Language