2
I am working on a system (portal) that offers service to 19 countries. For each country there is a database and each country with its language dictionary (even countries with the same language, have EX dictionaries: mexico and Spanha). The system was built in PHP, IIS windows 7. I want to migrate the system to php - Windows, apache, Linux. The first challenge I’m finding is the aqruivo . ENV configuration of the Laravel (latest version). It accepts a language and a database.
Enntão the logic is the following: when the user writes br.portal.mycompany.com the system must recover the credentials of access to the br_portal database and tbm recover the Labels in English (br) in the dictionary database.
How could you set up env to accept different credentials for different databases and different languages, based on different url possibilities ? Ex: br.portal.mycompany.com, us.portal.mycompany.com, es.portal.mycompany.com, etc....