mailbook: Error when using afterCommit()
Hi,
I’m running Mailbook v1.8.0 with Laravel 11.2.0 and when visiting /mailbook I get the following error:
Xammie\Mailbook\Data\ResolvedMail::__construct(): Argument #1 ($message) must be of type Symfony\Component\Mime\Email, null given, called in .../vendor/xammie/mailbook/src/MailableSender.php on line 36
I didn’t make any changes to Mailbook in the upgrade from Laravel v10 and I cannot find any documented breaking change in the changelog. It’s not very clear to me what I can do to fix this.
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 15 (9 by maintainers)
Commits related to this issue
- Fix after commit compatibility Possible fix for #79 — committed to Xammie/mailbook by Xammie 3 months ago
Fix has been released in mailbook
1.8.1And thank you so much for sponsoring! 😃
Awesome! I will release this soon.
That sounds like a very possible cause. It’s strange that this has not been an issue on Laravel 10. I will have a look at fixing this tomorrow. Thanks for the information.
@Xammie Thanks! I was using version v1.7.0 of Mailbook before.