Take a Laravel app from hardcoded English strings to a properly localized interface with translation files, pluralization, and a middleware that sets the locale.
#Middleware
Articles
Build a shared-database multi-tenant Laravel app from scratch using a tenant column, middleware, and a global scope that keeps every query isolated.
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.