worldesports/laravel-auto-tenancy
Automatic multi-tenancy for Laravel. Automatically scopes models, queries, and database connections to the current tenant with minimal configuration, so you can add tenant isolation to existing apps without rewriting your code. A lightweight package for building SaaS and multi-tenant apps.
Architecture fit
Integration feasibility
DatabaseManager/connection configuration cleanly or mutates config('database.connections') at runtime. The former is composable and testable; the latter is fragile and interferes with connection pooling, read replicas, and long-running workers.composer constraints should be read directly before any spike.Technical risk
NOASSERTION) is a gating risk. Until clarified, treat as unusable for commercial or distributed software. This is a legal blocker, not an engineering one, and should be resolved before any code is written.stancl/tenancy, tenancy/tenancy) have orders of magnitude more production exposure. The only reason to prefer this package is a specific capability or fit those do not provide.Key questions
migrate across all tenant databases, and is it transactional and resumable?Stack fit
stancl/tenancy (redundant), applications with heavy cross-tenant reporting (DB-per-tenant makes aggregate queries painful), or teams without the operational maturity to run N databases.Migration path
TenantContext interface plus a connection resolver) so the vendor can be swapped or forked without touching application code. Given 0 dependents, assume you may become the maintainer.Compatibility
composer.json constraints.Sequencing
Maintenance
Support
Scaling
max_connections becomes a hard constraint well before application load does.Failure modes
Ramp-up
TPM recommendation: This is a conditional evaluate, not an adopt. The pattern is sound and may be the right architectural choice, but the package itself carries unacceptable unmitigated risk today — unclear license, negligible adoption, single-vendor dependency, and it sits on the most security-sensitive seam in the application. Proceed only if (a) the license is clarified, (b) a spike proves the job/migration/failure-path behavior, and (c) the team accepts ownership of a fork if necessary. Otherwise, evaluate stancl/tenancy first and return to this only if it offers a capability the incumbents lack.
How can I help you explore Laravel packages today?