Answers for "Laravel validation unique on two fields"

PHP
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
0

unique check two clolumn in laravel validation

'data.ip' => ['required', 'unique:servers,ip,'.$this->id.','.$request->input('id').',id,hostname,'.$request->input('hostname')]
Posted by: Guest on February-08-2021

Code answers related to "Laravel validation unique on two fields"

Browse Popular Code Answers by Language