Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Kernel.php file alternative

Tags:

laravel

Im trying to work with ai on my project in Laravel. Most of them are a bit outdated, so if I want some scheduling they suggest using kernel.php in app/Console.

I did some research and kernel.php file is now hidden somewhere in new Laravel versions. Whats the alternative of using kernel?

like image 506
404ptk Avatar asked Feb 03 '26 00:02

404ptk


1 Answers

In laravel 11, kernel.php is no longer present and the related configuration should be handled through the bootstrap/app.php file.

Task scheduling is done in routes/console.php file in laravel 11.

For more detailed information about bootstrap/app.php file you can check this link.

https://laravel-news.com/laravel-11-directory-structure#content-the-app-directory

Also check the release note of the laravel 11 here..

https://laravel.com/docs/11.x/releases

https://laravel.com/docs/11.x/releases#scheduling

I hope it will help you.

like image 147
Subha Avatar answered Feb 04 '26 13:02

Subha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!