Description
A flexible multi-tenancy package for Laravel. Single & multi-database tenancy, automatic & manual mode, event-based architecture.
There are two types of multi-tenancy:
- single-database tenancy — tenants share one database and their data is separated using e.g. where tenant_id = 1 clauses.
- multi-database tenancy — each tenant has his own database
This package lets you do both, though it focuses more on multi-database tenancy because that type requires more work on the side of the package and less work on your side. Whereas for single-database tenancy you're provided with a class that keeps track of the current tenant and model traits — and the rest is up to you.
Related Content on Laravel Daily
Recent Courses on Laravel Daily
[NEW] Laravel MCP Server: Practical SaaS Example
9 lessons
49 min
Mobile Apps: React Native vs Flutter vs NativePHP?
8 lessons
55 min
Roles and Permissions in Laravel 13
14 lessons
57 min