Laravel DB Tenant allows dynamic switching of database connections at runtime using a Context Stack. Unlike global configurations, it ensures that your Eloquent Models remain connected to the source database (Sticky Connections), facilitating Multi-tenant architectures, migration scripts and archiving systems without extra complexity.
-
Updated
Dec 2, 2025 - PHP