Overview of laravel-multitenancy
mainThe spatie/laravel-multitenancy package provides the essential tools to make a Laravel application tenant-aware. It is designed to be unopinionated, focusing on the core requirements of multitenancy:
- Tenant Identification: Determining which tenant should be active for the current request.
- Tenant Switching: Defining actions that occur when the current tenant is switched.
- Database Support: Compatible with projects using either a single database or multiple databases for tenants.
Key features include making queued jobs tenant-aware, providing Artisan commands that run for each tenant, and offering easy ways to set database connections on models.