D
D
Dmitry Chekanov2017-08-08 13:51:09
Laravel
Dmitry Chekanov, 2017-08-08 13:51:09

Multilanguage with two domains on Laravel?

It is necessary to make 2 languages ​​for the site on Laravel, but on 2 domains. Those. go to .ru and get the Russian version, go to .com get the English version. In my head there is only a variant with the definition of the domain, and then, according to the condition, give this or that localization. Maybe there is a better option?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Chekanov, 2017-08-09
@LanDer931

Made so:
App::setLocale in AppServiceProvider changes depending on the domain.

M
Mikhail Osher, 2017-08-08
@miraage

RTFM: Sub-Domain Routing .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question