When I use the route cache, the prefix route binding parameters will report an error, so I trace the source code and modify it here is no problem · Issue #32127 ·
Laravel 5: Middleware don't work as expected - Stack Overflow
Redirecting to named route using middleware yields page not found : r/ laravel
Testing Laravel Middleware with HTTP Tests | Laravel News
laravel - Dynamic load routes file based on Middleware user - Stack Overflow