lundi 14 novembre 2016

function trans doesn't work in Laravel

I'm trying to make language chooser in laravel with simple text changing, I have two php files greetings in language folders, one in english, one in german.

This code is in de folder:

return array(
  'hello' => 'Hallo'   
);

and this is in the en folder

return array(
  'hello' => 'Hello'   
);

And when I try to show the word in the view using function trans it gives me the code from the view, not the word.



Any ideas?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire