php - Format Form Validation Message in Laravel 5 -
how format form validation error message in laravel 5 below ??
the date not valid date.
you can set custom validation messages in resources/lang/en/validation.php file:
'custom' => [ 'date' => [ 'date' => 'the <strong>:attribute</strong> not valid date.', ], ],
if want attribute bold on all date validation messages (regardless of field name), can set message date
key:
'date' => 'the <strong>:attribute</strong> not valid date.',
Comments
Post a Comment