๐๐ฎ๐ฟ๐ฎ๐๐ฒ๐น ๐ ๐ถ๐ฑ๐ฑ๐น๐ฒ๐๐ฎ๐ฟ๐ฒ ๐ก๐ผ๐ ๐ช๐ผ๐ฟ๐ธ๐ถ๐ป๐ด? ๐๐ถ๐ ๐๐ ๐ก๐ผ๐
Laravel middleware fails. This is frustrating.
Auth fails. Custom code does not run. Routes bypass rules. CSRF blocks requests.
Fix these issues with these steps:
- Attach middleware to routes.
- Register your aliases.
- Fix auth bugs.
- Debug custom code.
- Clear your cache.
- Fix CSRF blocks.
- Set the execution order.
Source: https://growthawakening.com/single-post/laravel-middleware-not-working-complete-fix-guide
Optional learning community: https://dev.to/fatima_fatima_d511fc4e550/laravel-middleware-not-working-complete-fix-guide-jlm