
Global Scopes for Multi-Tenant Laravel Apps, and Where They Leak
How to scope tenant data with an Eloquent global scope in Laravel 12, and the places it does not reach, queued jobs, console commands, withoutGlobalScopes, validation rules, raw queries and pivot tables.
- #Laravel
- #SaaS
- #Multi-tenancy
- · 12 min read
