Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

f4xxf4xx's avatar

Laravel multi-language website with different domains

Hi,

I'm trying to find information on how you can host a Laravel website on 2 domains with one being in one language and in another language on another domain (but being the same app). I looked at the

So for example, let's say I have a Laravel app about Boats. And I have the domain name boats.com and bateaux.com (french version). Technically what I'd want is that it would be the same website on both domain and on the same server, with the difference that their config/app.php setting for "locale" would be different.

I was also thinking about duplicating the entire website and hosting 2 differents app doing the same thing except for having a different locale, but that seems really inefficient.

For your information, I was planning on getting a "droplet" from DigitalOcean, but I can't find information on how to make a multi-language Laravel app to work with it.

Thanks a lot!

0 likes
2 replies
TheFriendlyHacker's avatar
Level 6

My first thoughts are to host a single instance of the application, but set the locale at run time, based on the domain.

$domain = url('/');

if($domain === 'english.domain') {
  config(['app.locale' => 'en']);
} else {
  config(['app.locale' => 'fr']);
}

Something along those lines.

1 like
f4xxf4xx's avatar

I think that is exactly what I was looking for! Thanks a lot.

Please or to participate in this conversation.