laravel unikalne wiele kolumn
$table->unique(['mytext', 'user_id']);
Tough Tarsier
$table->unique(['mytext', 'user_id']);
'mobile_no'
=> 'unique:users,mobile_no,NULL,id,country_id,'.request('country_id');
public function rules()
{
return [
'column_1' => 'required|unique:TableName,column_1,' . $this->id . ',id,colum_2,' . $this->column_2 . ',colum_3,' . $this->column_3,
];
}
'name' => 'required|max:150|unique:course_lessons,name,NULL,id,course_id,' . request('course_id'),