#Kernel.php is missing
3 messages · Page 1 of 1 (latest)
I am using Laravel11, do I need Kernel for middleware or should I use a different file?
You should use the bootstrap/app.php file to define you custom middleware.
See in docs: https://laravel.com/docs/11.x/middleware#global-middleware