Laravel schedule not run #50503
-
Laravel Version11.0.3 PHP Version8.3 Database Driver & VersionPostgres DescriptionIn laravel 10 schedule config is read from kernel.php, in laravel 11, i read from the doc, config must write in routes/console.php. In php artisan schedule:list, all my schedule listed, but when php artisan schedule:run, schedule not work, Whats wrong about me? Steps To ReproducePlease help me |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there, Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels: However, this issue will not be locked and everyone is still free to discuss solutions to your problem! Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hey @utqinadhif, I just hade the same problem and noticed, that my bootstrap/app.php file was missing the needed configuration. It should look like this: return Application::configure(basePath: dirname(__DIR__))
->withProviders()
->withRouting(
web: __DIR__ . '/../routes/web.php',
api: __DIR__ . '/../routes/api.php',
commands: __DIR__ . '/../routes/console.php', // <<< important line
channels: __DIR__ . '/../routes/channels.php',
health: '/_healthcheck',
)... |
Beta Was this translation helpful? Give feedback.
Hi there,
Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.