Last Updated: February 25, 2016
·
284
· dieter coopman

Passing variable to language file

If you want te pass a variable to a localisation file you can do the following

Lang::get('app.deletemessage',array('model','user'));

And define this in your message variable

'deletemessage' => 'Are you sure you want to delete this :model'

This wil product "Are you sure you want to delete this user"

neat ...