Implementing multi-tenancy in a Laravel app
summary
Demo of the open-source Laravel multi-tenency package shows a working multi-database setup where a landlord DB maps domains to tenant DBs and the app swaps the tenant connection at request time, queue jobs, and artisan commands. Uses Laravel, Ray, and Spatie-style tooling; migrations run across two tenant databases and jobs retain tenant context. The package adds tasks like switch tenant database and a helper command tenants artisan to run regular artisan commands per tenant.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 4:05What is multi-tenancy
- 7:21Demo setup and databases
- 13:25Queue jobs and tenant awareness
- 14:49Artisan commands for tenants
- 16:58Migrating tenant databases
- 19:07Package features summary
- 20:31Q&A
related talks
28mProduct in Laravel? No Problem!
25mMultitenant applications: how and why
25mMulti-Tenancy Architecture Lessons Learned
30mLegacy to Laravel in 30 minutes
38mDeveloping Multi-Tenant Applications
46mMaking an Application Multitenant Without Annoying Developers
44mHello Multitenancy World!
28mDivide and Conquer: Multi-tenancy in Postgres
