/** * This example assumes there is a style tag in the view. * * @param NotificationInterface $notification */ public function sendNotification(NotificationInterface $notification) { $this->mailer->send('emails.notification', compact('notification'), function ($message) use($notification) { $message->to($notification->getUser()->email); }); }