Answers for "laravel validation unique 2 both columns"

PHP
6

laravel unique multiple columns

$table->unique(['mytext', 'user_id']);
Posted by: Guest on June-10-2020
0

unique check two clolumn in laravel validation

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

Code answers related to "laravel validation unique 2 both columns"

Browse Popular Code Answers by Language