Answers for "laravel edit form and add form showing the same validation messages"

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

Code answers related to "laravel edit form and add form showing the same validation messages"

Browse Popular Code Answers by Language