DEV Community

Mohamed Said
Mohamed Said

Posted on

Multi-tenancy in Laravel: Migrations, Testing, and switching tenants

In this video, we discuss how we can achieve multitenancy in Laravel using the database-per-tenant approach. We cover:

  • Managing multiple DB connections
  • Migrating & seeding tenants & admin databases
  • Running tests against tenant & admin databases
  • Connecting to the correct tenant on requests/jobs

Top comments (0)