mardi 7 mai 2019

How to get translate message in controller Laravel?

I have file excel.php by the path /resources/lang/en/excel.php

Then in controller I tried to fetch word by key:

use Lang;

echo Lang::get('excel.idEvent');

Also I tried:

dd(echo __('excel.idEvent'));

Whats is right way to do that?



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2J6TXss
via IFTTT

Aucun commentaire:

Enregistrer un commentaire