Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation

use IlluminateValidationRule;

Validator::make($data, [
    'email' => [
        'required',
        Rule::unique('users')->ignore($user->id),
    ],
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation
ADD COMMENT
Topic
Name
7+5 =