diff --git a/src/Commands/LaravelHorizonDoctorCommand.php b/src/Commands/LaravelHorizonDoctorCommand.php index 042a9cb..b77d449 100644 --- a/src/Commands/LaravelHorizonDoctorCommand.php +++ b/src/Commands/LaravelHorizonDoctorCommand.php @@ -103,9 +103,12 @@ protected function checkDefaultQueuesAreProcessed(array $horizonConfigs, array $ ->flatten() ->unique() ->values(); - $defaultQueue = $queueConfig['queue']; - if (! $processedQueuesInHorizon->contains($defaultQueue)) { - $errors[] = "Default queue `{$defaultQueue}` of connection `{$connectionName}` will not be processed by any worker set in config/horizon.php"; + + $handledQueues = collect($queueConfig['queue']); + foreach ($handledQueues as $queue) { + if (! $processedQueuesInHorizon->contains($queue)) { + $errors[] = "Queue `{$queue}` of connection `{$connectionName}` will not be processed by any worker set in config/horizon.php"; + } } if ($errors->count()) {