seyedrezabazyar's avatar

Missing app/Http/Kernel.php in Laravel 12 Project

Hello, I am working on a Laravel 12 project and noticed that the app/Http/Kernel.php file is missing. According to the official Laravel repository on GitHub, this file should be present in the standard project structure. My composer.json includes "laravel/framework": "^12.0", indicating a standard installation.

Is there a change in Laravel 12's structure regarding the Kernel.php file, or should I manually create it? Any guidance would be appreciated.

1 like
3 replies
jlrdw's avatar

Use bootstrap\app.php and read the upgrade guides to see what changed.

6 likes
Mo-TawabDev's avatar

from laravel 11 later the kernel.php is removed, and to configure ur middleware classes use the bootstrap/app.php tnx✅

1 like

Please or to participate in this conversation.