Relationship not being passed to notification?
问题 I created a notification that I am passing a model to: class NewMessage extends Notification implements ShouldQueue { use Queueable; protected $message; public function __construct(Message $message) { $this->message = $message; } public function via() { return ['database']; } public function toArray() { Log::info($this->message); return [ 'message_id' => $this->message->id, ]; } } And this is how I call the notification: $message = Message::where('user_id', Auth::user()->id) ->where('message