Answers for "How to return custom error message from controller method validation"

PHP
0

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']
);
Posted by: Guest on June-23-2021

Code answers related to "How to return custom error message from controller method validation"

Browse Popular Code Answers by Language