Answers for "custom laravel validation error 5.7"

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 custom validation

php artisan make:rule RuleName
Posted by: Guest on February-06-2021

Code answers related to "custom laravel validation error 5.7"

Browse Popular Code Answers by Language