Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override standard error message globally #10

Closed
pcr-coding opened this issue Feb 18, 2014 · 2 comments
Closed

Override standard error message globally #10

pcr-coding opened this issue Feb 18, 2014 · 2 comments

Comments

@pcr-coding
Copy link

I define all of my standard validation error messages in /app/lang/{language}/validation.php
but if I add unique_with it still shows your error message. Is it possible to override your message globally? Don't want to do it manually on every validation.

Would be nice to have this on the laravel standard.

@felixkiss
Copy link
Owner

I haven't tested it, but try this: http://laravel.com/docs/localization#overriding-package-language-files

@pcr-coding
Copy link
Author

Thanks, this solves my problem. Although I don't have all validation massages in one place now what would be nicer to maintain. But since it looks like to be the laravel way to do this I would have to accept this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants