public function rules()
{
return [
'title' => 'required|max:255',
'type' => 'required|max:255',
'lang' => 'required|max:255',
// 'lang' => 'required|max:255|unique:termcondition',
// 'type' => 'required|max:255||unique:termcondition'
];
}
- i want to make a validation which is combinig 2 column with (And) operator, - there is "type" and "lang" columns. so i want to make them unique with (And) operator. - can somebody help me ... ?