Answers for "laravel validation unique medium"

PHP
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
1

laravel unique validation on multiple columns

'mobile_no' 
  => 'unique:users,mobile_no,NULL,id,country_id,'.request('country_id');
Posted by: Guest on October-23-2020

Code answers related to "laravel validation unique medium"

Browse Popular Code Answers by Language