You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MessageSent event's payload does not provide informations about the actual Mailable which has been sent.
This is probably due the fact a mail sent through the Laravel's mail subsystem may not be a Mailable at all, but yet some kind of relation attached to the SentMessage object may be useful to determine why the MessageSent event has been delivered in first place and trigger more actions with a semantic.
My use case: send an "account termination" notification using a dedicated Mailable (potentially a complex one, requiring many informations about the account itself and his relations to provide more context) and, when done, actually delete the account from the database.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The
MessageSent
event's payload does not provide informations about the actualMailable
which has been sent.This is probably due the fact a mail sent through the Laravel's mail subsystem may not be a
Mailable
at all, but yet some kind of relation attached to theSentMessage
object may be useful to determine why theMessageSent
event has been delivered in first place and trigger more actions with a semantic.My use case: send an "account termination" notification using a dedicated Mailable (potentially a complex one, requiring many informations about the account itself and his relations to provide more context) and, when done, actually delete the account from the database.
Beta Was this translation helpful? Give feedback.
All reactions