Answer the question
In order to leave comments, you need to log in
How to translate field names in Laravel?
Good afternoon!
Tell me, please, how to translate the field names in the validation error messages that are shown to the user?
For example, Laravel messages at the time of validation
1) This value of the email field already exists.
2) The number of characters in the password field must be at least 6.
3) The number of characters in the auto_name field must be at least 3.
Instead of email, there should be an email address, password - password, auto_name - car name.
What files and in what places to edit?
I'm looking for the right way.
Thank you.
Answer the question
In order to leave comments, you need to log in
The most adequate way is to use the localization features in Laravel - https://laravel.ru/docs/v5/localization .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question