Build a shared-database multi-tenant Laravel app from scratch using a tenant column, middleware, and a global scope that keeps every query isolated.
#Middleware
Articles
Laravel's Pipeline class is the engine behind HTTP middleware, but it's a general-purpose pattern you can use anywhere you need to pass data through a chain of transformations.
Middleware in Laravel goes well beyond authentication guards. These five techniques cover terminable middleware, priority ordering, route-level parameters, and more.