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 ...
Written by Dieter Coopman
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Laravel
Authors
Related Tags
#laravel
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#