tenancy / multi-tenant

Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups, previously github.com/hyn/multi-tenant
https://tenancy.dev
MIT License
2.56k stars 394 forks source link

Possibility to set middleware to tenant routes #979

Closed dneykov closed 3 years ago

dneykov commented 3 years ago

This PR add possibility to set middlewares to tenant specific routes.

Reason

fletch3555 commented 3 years ago

Can't you just manually add the middleware with a route group in the tenant routes file? We also don't add a controller prefix (before laravel 8 at least) or any of the other stuff that routes/web.php gets.

I'm not specifically opposed to this, but I'm not sure it's really adding any benefit since it's already possible to do what you're asking.