Undefined Property in Notification toMail() #34685
Unanswered
chaowen112
asked this question in
Q&A
Replies: 1 comment
-
Laravel 5.6 is no longer supported (for a long time). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using L5.6 now and trying to send email through notifications.
The following is my Notification class.
And I use the class in the controller like
I doubted if queueing is the issue since it takes a long time to send the email, but no matter using database queue or sync, both run into the same error.
I tried to log the variable in the constructor, and it successfully prints out what I want. But I can't access the same variable in other functions. Could anyone help?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions