Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to return custom error message from controller method validation

$this->validate(
    $request, 
    ['thing' => 'required'],
    ['thing.required' => 'this is my custom error message for required']
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #return #custom #error #message #controller #method #validation
ADD COMMENT
Topic
Name
4+9 =