Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #validation #message #laravel
ADD COMMENT
Topic
Name
6+2 =