Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel unique cheque using multiple column

public function rules()
{            
    return [
       'column_1' => 'required|unique:TableName,column_1,' . $this->id . ',id,colum_2,' . $this->column_2 . ',colum_3,' . $this->column_3,
    ];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Laravel #unique #cheque #multiple #column
ADD COMMENT
Topic
Name
2+6 =