diff --git a/framework/core/src/Queue/QueueServiceProvider.php b/framework/core/src/Queue/QueueServiceProvider.php index fec8182bf..de7f6905a 100644 --- a/framework/core/src/Queue/QueueServiceProvider.php +++ b/framework/core/src/Queue/QueueServiceProvider.php @@ -107,6 +107,13 @@ class QueueServiceProvider extends AbstractServiceProvider protected function registerCommands() { $this->app['events']->listen(Configuring::class, function (Configuring $event) { + $queue = $this->app->make(Queue::class); + + // There is no need to have the queue commands when using the sync driver. + if ($queue instanceof SyncQueue) { + return; + } + foreach ($this->commands as $command) { $event->addCommand($command); }