carlosoliveiras's avatar

Create file Kernel.php

I need to make a change to the Kernel.php file in Laravel, but it doesn't exist in my project.

1 like
2 replies
JeffreyWay's avatar
Level 59

@carlosoliveiras That file is no longer available in the latest versions of Laravel. You're likely looking for the bootstrap/app.php file.

If you clarify what you need to accomplish, we can help more.

1 like
jlrdw's avatar

Usually the question pertains to:

https://laravel.com/docs/11.x/middleware#manually-managing-laravels-default-middleware-groups

I changed my bootstrap/app.php file to:

All works, tweak yours as needed.

Please or to participate in this conversation.