stancl/tenancy
Automatic multi-tenancy for Laravel with no code changes needed. Database-per-tenant, hostname and subdomain identification, and no model traits or class swapping. Docs at tenancyforlaravel.com.
Architecture fit
stancl/tenancy is opinionated about lifecycle, not business logic: it hooks Laravel's bootstrapping to resolve a tenant (domain/hostname, with second-level domain support) and to re-point database, cache, filesystem, session, and queue contexts per request.tenants and domains, each tenant gets its own schema/connection. This is the strongest isolation story and the cheapest to retrofit if the app already respects Eloquent connections.Integration feasibility
Technical risk
Key questions
Stack fit
Migration path
Compatibility
Sequencing
Maintenance
Support
Scaling
max_connections. Model this before tenant 50, not after.Failure modes to instrument
Ramp-up
How can I help you explore Laravel packages today?