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

If your sites all share the same logic then you could just treat them as one site with different templates.

Create one laravel app and let all requests pass through to the controller and then based on the domain name decide which template(view folder) to use for the site.

For the cases when you have a few sites needing a custom logic, create a set of routes for them and guard them with filters with domain validation.

Last updated 2 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.