Support the ongoing development of →
posted 10 years ago
Last updated 2 years ago.

You don't need separate routes for multilingual sites. Suppose they change the language in a dropdown, just use some Javascript and redirect to location.pathname + '?lang=' + lang

Then perhaps at the top of the routes or in a service provider:

if (Input::get('lang') {

Then use the Language files so you show the correct text.

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?

luknei luknei Joined 7 Mar 2014


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

Your logo here?

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

© 2024 - All rights reserved.