protected function commandShouldBeQueued($command) { if ($command instanceof ShouldQueue) { return true; } return (new ReflectionClass($this->getHandlerClass($command)))->implementsInterface('Illuminate\\Contracts\\Queue\\ShouldQueue'); }