L
L
LP-DIMAN2016-02-15 08:51:49
Laravel
LP-DIMAN, 2016-02-15 08:51:49

How to display field names in Russian on errors in laravel?

I would like the field names to be in Russian
The surname field is required.
The name field is required.
The patronymic field is required.
The phone field is required.
The email field is required.
The password field is required.
How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LP-DIMAN, 2016-02-15
@LP-DIMAN

Found the answer myself
Specifying custom messages in a language file
It may also be useful to define these messages in a language file instead of passing them directly to the Validator. To do this, add messages to the custom array of the resources/lang/xx/validation.php language file.
'custom' => [
'email' => [
'required' => 'We need to know your email address!',
],
],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question