loader

Learnings from our multi-tenant Laravel application

  • Home >
  • Video >
  • Learnings from our multi-tenant Laravel application
  • May 01 2025 08:37
  • by Admin

Learnings from our multi-tenant Laravel application

In this video we'll be taking an in-depth look at our multi-tenant food ordering app, that's built in Laravel. Want to discuss your multi-tenant project? Book a consulting call: https://cal.com/sabatino/developer-consulting Article: https://www.sabatino.dev/shared-database-multi-tenancy-in-laravel/ We'll talk about our single, shared database approach, and the issues that come with it. And finally we take a look at how tenant resolving works in our application. How a flash sale took down our entire system: https://youtu.be/PmwZ9rpfouY This project started in 2014 and is still going strong. 00:00 - Introduction 00:18 - Laravel Multitenancy 01:03 - Our database setup 01:48 - Lessons learned 01:55 - 1) Don't use distant relationships 03:59 - 2) Use orWhere with caution 05:31 - 3) Pay extra attention to indices 06:37 - 4) Don't use global scopes 07:29 - Tenant resolving 09:25 - Outro

Web Author Note: Sarabjit singh / Ritika

Please note that we have no copyright's any of the videos shared on our website, any view and revenue playing these videos will goto the owner.





Category

Related Videos