Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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',
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #unique #validation
ADD COMMENT
Topic
Name
6+7 =