Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel unique validation on multiple columns

'mobile_no' 
  => 'unique:users,mobile_no,NULL,id,country_id,'.request('country_id');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #unique #validation #multiple #columns
ADD COMMENT
Topic
Name
7+5 =