to get custom error message you need to pass custom error message on third parameter,like that
$this->validate(
$request,
['thing' => 'required'],
['thing.required' => 'this is my custom error message for required']
);
More Related Contents:
- laravel change validation default message from front side
- Laravel 5.2 Validation Error not appearing in blade
- Laravel update model with unique validation rule for attribute
- Laravel unique validation on multiple columns
- Custom Laravel validation messages
- Laravel password validation rule
- Laravel: Validation unique on update
- ErrorBag is always empty in Laravel 5.2
- How validate unique email out of the user that is updating it in Laravel?
- How to Validate on Max File Size in Laravel?
- required_if Laravel 5 validation
- Custom validator in Laravel 5
- Laravel: Validate maximum File size?
- Check if laravel model got saved or query got executed
- Getting particular object
- How to do this in Laravel, subquery where in
- How to check file types of uploaded files in PHP?
- How to create Helper Methods on Laravel not a Facade
- Get the Query Executed in Laravel 3/4
- What does “Mass Assignment” mean in Laravel?
- SQLSTATE[42S22]: Column not found: 1054 Unknown column – Laravel
- Accessing Laravel .env variables in blade
- laravel TokenMismatchException in ajax request
- Laravel 5 hasMany relationship on two columns
- How to pass a PHP variable to Vue component instance in Laravel blade?
- Passing data from controller to view in Laravel
- What’s the best way to localise a date on Laravel?
- Optional parameter in the middle of a route
- Laravel /broadcasting/auth Always Fails With 403 Error
- Symfony\Component\HttpKernel\Exception\NotFoundHttpException Laravel