hello team,
I have a laravel app with 2 languages.
www.domain.com/en www.domain.com/de
I like use a server in US for /en.
And for /de a german server.
@jlrdw no?
But which element tells laraval: This traffic come from germany, use the „de“ server? Because its the same domain. I dont like use subdomain.
@jlrdw yes i understand what you mean. But how i configure this? Its the same laravel application, and the same domain. Do mean i setup in forge the „de“ server and set the domain in forge to domain.com/de?
And on the other server domain.com/en?
Yes i have language switcher on the app. If you click „de“, then you will redirect to /de. And the session middleware locale change to de, too. This works! But now both use the same server.
Im not sure it would also direct the user to a language specific url , you should probably do that in your app by choosing a default based on the user's location but also giving them a cookie if they decide to change language (eg, just because im travelling to the US wont necessarily mean i want the english version)