Answers for "custom validation rule for email in laravel 8"

PHP
1

how to add an custom error to validater error in laravel

if (request('event') == null) {
    $validator->errors()->add('event', 'Please select an event');
}
Posted by: Guest on October-20-2020
0

laravel validation

Rule::unique('users')->ignore($user->id, 'user_id')
Posted by: Guest on December-25-2020

Code answers related to "custom validation rule for email in laravel 8"

Browse Popular Code Answers by Language