Skip to content

Conversation

@chinmaypurav
Copy link
Contributor

This pull request updates the way queue connection information is displayed in the AboutCommand output. Specifically, it enhances the reporting for queue connections that use the failover driver by showing both the primary and secondary connections.

Improvements to queue connection reporting:

  • Modified the Queue entry in gatherApplicationInformation() in src/Illuminate/Foundation/Console/AboutCommand.php to display both the main and secondary connections when the failover driver is used, providing clearer visibility into queue configuration.

Before:

image

After:

image

Comment on lines +226 to +240
'Queue' => function ($json) {
$queueConnection = config('queue.default');

if (config('queue.connections.'.$queueConnection.'.driver') === 'failover') {
$secondary = new Collection(config('queue.connections.'.$queueConnection.'.connections'));

return value(static::format(
value: $queueConnection,
console: fn ($value) => '<fg=yellow;options=bold>'.$value.'</> <fg=gray;options=bold>/</> '.$secondary->implode(', '),
json: fn () => $secondary->all(),
), $json);
}

return $queueConnection;
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, we could extract this logic into a separate method, so that we can reuse it here as well as for the 'Cache' and the 'Logs' case above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking we let this go for now and we can consider the whole refactor later, because I intend to make a similar PR for mail as well, the internal key structure is not very symetrical and we will need to pass each wrapper key in that.

This will be for logging, cache, queue (current PR) and mail (future PR).

@shaedrich
Copy link
Contributor

Are this PR and #57579 related?

@chinmaypurav
Copy link
Contributor Author

Are this PR and #57579 related?

At first I did that for cache and later on realised, it was added to queue as well. hence this PR.

@shaedrich
Copy link
Contributor

Ah, great—thanks for the explanation 👍🏻

@taylorotwell taylorotwell merged commit d95fe95 into laravel:12.x Oct 30, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants