-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Closed
Description
Laravel Version
11.0.3
PHP Version
8.3.2
Database Driver & Version
No response
Description
In upgrading from 10.x to 11.x
:
However, we do not recommend that Laravel 10 applications upgrading to Laravel 11 attempt to migrate their application structure, as Laravel 11 has been carefully tuned to also support the Laravel 10 application structure.
I don't know if it is on purpose or accidentally.
Steps To Reproduce
(new ApplicationBuilder(new Application(dirname(__DIR__))))
->withKernels()
->withEvents()
->withCommands()
->withProviders()
->withRouting(fn() => defineRoutes())
->withExceptions()
->create()
In withCommands
, without singleton
.
In withExceptions
, with singleton
.
app/Console/Kernel.php
will not be loaded:
protected function schedule(Schedule $schedule): void
{
dump('schedule');
then run php artisan schedule:list
:
INFO No scheduled tasks have been defined.
without "schedule" //xxx.php:xxx
.
Metadata
Metadata
Assignees
Labels
No labels