unique multiple columns laravel validation code example
Example 1: laravel unique multiple columns
$table->unique(['mytext', 'user_id']);
Example 2: unique check with multiple columns laravel validation
'name' => 'unique:table,field,NULL,id,field1,value1,field2,value2,field3,value3'
Example 3: laravel unique validation on multiple columns
'mobile_no'
=> 'unique:users,mobile_no,NULL,id,country_id,'.request('country_id');