Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

unique check two clolumn in laravel validation

'data.ip' => ['required', 'unique:servers,ip,'.$this->id.',NULL,id,hostname,'.$request->input('hostname')]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unique #check #clolumn #laravel #validation
ADD COMMENT
Topic
Name
7+9 =