public function send(NotificationInterface $notification, User $user) { $this->mailer->send($notification->getEmailView(), compact('notification', 'user'), function ($message) use($notification, $user) { $message->to($user->email, $user->username)->subject('[' . $this->forum->title . '] ' . $notification->getEmailSubject()); }); }