D
D
devilsD2021-08-08 13:50:09
Laravel
devilsD, 2021-08-08 13:50:09

How to set up different configs in laravel for different countries?

The country should be determined by ip, and a set of locales for this country should be loaded, now supportedLocales are specified in the config as an array.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2021-08-08
@glaphire

https://stackoverflow.com/a/29338247 - here are examples for domains, but the logic is similar.
One of the best solutions is to determine the country by IP at the provider level and load only part of the configs to determine the locale

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question