Support the ongoing development of Laravel.io →
Architecture
Last updated 2 years ago.
0

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 registerLoader.

You might just want to redesign the way all of this is handled.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.