I
I
ildar-meyker2019-11-02 19:25:39
Laravel
ildar-meyker, 2019-11-02 19:25:39

In /resources/lang/en/validation.php, the value of :attribute is the value of the name attribute. Can it be customized?

The question is the same as here https://stackoverflow.com/questions/39155944/larav...
Right now I'm getting errors like:
'The field name en must be filled in.'
And I would like something like:
'Field Name English must be filled.'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kokhan, 2019-11-02
@ildar-meyker

In the lang folder, make the ru folder, transfer everything from the en folder there, write in the validation file

'attributes' => [
'name' => 'Имя',
];

and don't forget to change the locale to ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question