-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Custom validation message not coming #10
Comments
Having the same problem here |
Hi guys! I'm having the same problem here, but I know how to solve. Below, you can see a short tutorial:
I don't know if its the right way to solve this problem, but at least now its working well for me! |
This issue is in release 1.1.4 which the readme instructions say to include in your composer file. If you change your composer to install dev-master like this |
I've already installed
|
Having the same problem here |
I've installed |
@lucasccosta Nice approach! However, following SOLID rules, we cannot change AbstractValidator and LaravelValidator. In this case I recommend ( and was my solution ) , create a class that extends LaravelValidator and containing these changes. My suggestion:
Cya! |
I am using repository pattern using L5-repository validation. This is my
controller
Validation class
But I am getting this error when I use $e->getMessage() .
If I am using $e->getMessageBag() I am getting proper error response. But my custom messages are not displayed. A generic message is displayed.
It actually should have been
dd($e)
The text was updated successfully, but these errors were encountered: