I have 3 domains pointing to the same Laravel application. I want each one to connect to its own database and upload its own TLD-based language file. What is the file where I can configure these settings? Can I do this directly in the configuration file or maybe some event before loading the configuration.
I have a short function that will analyze the domain and get a TLD, on the basis of which, after a quick check, we will know which database and language will be used.
source
share