Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation unique two columns

[
     'column_1' => 'required|unique:TableName,column_1,' . $this->id . ',id,colum_2,' . $this->column_2
]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #unique #columns
ADD COMMENT
Topic
Name
1+7 =