dimanche 16 décembre 2018

How to use custom translations for resources in Laravel?

Documentation says to create directory with file by path: resources/lang/xx/validation.php.

Then add content of validation words:

return ['custom' => [
    'email' => [
        'required' => 'We need to know your e-mail address!',
    ],
]];

How to use this in resource where is going validation?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Exf0Cd
via IFTTT

Aucun commentaire:

Enregistrer un commentaire