Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

unique check two clolumn in laravel validation

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