Answers for "laravel validation unique medium 2 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 "laravel validation unique medium 2 columns"

Browse Popular Code Answers by Language