We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If your Mailable has a priority (assuming the bug in #40916 has been fixed), then the message will fail to queue with:
Serialization of 'Closure' is not allowed
This is because the priority setting is done through a callback within Mailable.
class MyTestEmail extends Mailable implements ShouldQueue { public function __construct() { $this->priority(1); } } \Mail::to('[email protected]')->queue(new MyTestEmail());
The text was updated successfully, but these errors were encountered:
Moving priority() into the build function instead of the constructor works enough as a workaround, so maybe that's fine.
priority()
Sorry, something went wrong.
Yes please move this to the build method. Thanks
No branches or pull requests
Description:
If your Mailable has a priority (assuming the bug in #40916 has been fixed), then the message will fail to queue with:
This is because the priority setting is done through a callback within Mailable.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: