vendredi 1 avril 2016

Laravel: get translation from language file containing dot

Is it possible to get translation from language file that contains (.)dot?

For example, The language directory looks like

/lang
      /en
          pagination.php
          phone.history.php

     /es
          pagination.php
          phone.history.php

phone.history.php file contains dot and want to get translation for the key 'name' from phone.history.php file.

Lang::get('phone.history.name')

It doesn't work.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire