Skip to content

[13.x] Ensure Queue::route string defaults to queue only#59711

Merged
taylorotwell merged 1 commit intolaravel:13.xfrom
jackbayliss:13.x-ensure-string-defaults-to-queue-only
Apr 15, 2026
Merged

[13.x] Ensure Queue::route string defaults to queue only#59711
taylorotwell merged 1 commit intolaravel:13.xfrom
jackbayliss:13.x-ensure-string-defaults-to-queue-only

Conversation

@jackbayliss
Copy link
Copy Markdown
Contributor

@jackbayliss jackbayliss commented Apr 15, 2026

As per https://github.com/laravel/docs/blob/545534afef3d8d0e350dbcb3dc97cc6c4b79f532/queues.md?plain=1#L1311

This ensures if it's only a string specified, it doesn't apply to the connection, only queue.

Technically could be considered a B/C, but I dont think it's a real one as this feels correct behavior.

This means the below works:

Queue::route([
   Job:class => 'queue'
]);

Added a test too.

@github-actions
Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss jackbayliss marked this pull request as ready for review April 15, 2026 21:09
Comment thread src/Illuminate/Queue/QueueRoutes.php
@taylorotwell taylorotwell merged commit 0fa420f into laravel:13.x Apr 15, 2026
54 checks passed
@taylorotwell
Copy link
Copy Markdown
Member

Thanks!

@jackbayliss jackbayliss deleted the 13.x-ensure-string-defaults-to-queue-only branch April 16, 2026 13:23
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