Answers for "unique laravel validation unique two columns"

PHP
6

laravel unique multiple columns

$table->unique(['mytext', 'user_id']);
Posted by: Guest on June-10-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 "unique laravel validation unique two columns"

Browse Popular Code Answers by Language