Ability to set Notifiable instance #40
shanedeakin
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Good idea. How are you currently retrieving the user inside your mailable? Are you using the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When adding routes to routes/mailbook.php, it would be useful to be able to set the model or object that should be notified.
I usually typehint my
via
andtoMail
methods as I haveUser
models andAdmin
models for example with multiple auth guards.Currently, if my notifications are type-hinted I get an error regarding the type, but also, I'm then not able to access properties or relationships that would normally exist.
It would be nice to be able to do something like:
or
Beta Was this translation helpful? Give feedback.
All reactions