Answers for "get laravel validation error message"

PHP
1

get message validator failed laravel

$errors = $validator->errors()->getMessages();
Posted by: Guest on May-19-2021
1

how to change validation message in laravel

$messages = [
        'exists' => 'Your custom message',
    ];
    $this->validate($request, [
    'recovery_code' => 'required|exists:users,email_recovery_code',
    'new_password'=>'required',
    'confirm_password'=>'required|same:new_password',
    ],$messages);
Posted by: Guest on January-21-2021

Code answers related to "get laravel validation error message"

Browse Popular Code Answers by Language