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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire