Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation unique in edit

...
$rules = User::$rules;
$rules['email_address'] = $rules['email_address'] . ',id,' . $id;
$validationCertificate  = Validator::make($input, $rules);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #unique #edit
ADD COMMENT
Topic
Name
9+1 =