Answer for number 1; routing from the database is quite hard in Laravel however you could use the sub-domain routing and grab the current site name and get a site id from it.
Answer for number 2; create an implementation of Illuminate\Translation\LoaderInterface that fits your needs and extend the service provider for Illuminate's (remember update it in config/app.php) just overwrite
You might just want to redesign the way all of this is handled.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.