Support the ongoing development of Laravel.io →
posted 10 years ago
Views
Last updated 2 years ago.
0

Something like this should work:

{{trans('page.' . $title )}}
Last updated 2 years ago.
0

Yes, http://laravel.com/docs/localization#language-files

so just put placeholder to your lang file and pass the title for it: Lang::get('messages.welcome', array('name' => 'Dayle'));

Last updated 2 years ago.
0

Thank you both!

I was just using one . like {{trans('page.' $title )}}

My mistake.

Thank you again

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tibihub tibihub Joined 13 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.