Skip to content

[13.x] Preserve queue resolution on queued mailables in MailFake - #61114

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
hamdyelbatal122:fix/mail-fake-queue-resolution
Aug 10, 2026
Merged

[13.x] Preserve queue resolution on queued mailables in MailFake#61114
taylorotwell merged 1 commit into
laravel:13.xfrom
hamdyelbatal122:fix/mail-fake-queue-resolution

Conversation

@hamdyelbatal122

Copy link
Copy Markdown
Contributor

Description

When queueing mailables via Mail::queue(), Mail::later(), Mail::onQueue(), Mail::queueOn(), or Mail::laterOn() while using Mail::fake(), the $queue parameter was ignored and $mailable->queue remained null.

This PR updates MailFake to call $view->onQueue($queue) matching Mailer::queue() in production, and implements missing onQueue, queueOn, and laterOn helper methods on MailFake.

@taylorotwell
taylorotwell merged commit 3c939fa into laravel:13.x Aug 10, 2026
54 of 55 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.

2 participants