Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation unique email except self

use IlluminateValidationRule;

'name' => ['required', Rule::unique('items')->ignore($this->id)],
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #unique #email
ADD COMMENT
Topic
Name
6+1 =