Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to add an custom error to validater error in laravel

if (request('event') == null) {
    $validator->errors()->add('event', 'Please select an event');
}
Source by dcblog.dev #
 
PREVIOUS NEXT
Tagged: #add #custom #error #validater #error #laravel
ADD COMMENT
Topic
Name
8+2 =