/** * Sends Mail * @param $user */ public function welcome($user) { $this->mailer->sendTo($user, "Welcome to Knight of Sorrow", 'emails.welcome', ['user' => $user]); }
/** * Execute the job. * * @param Mailer $mailer */ public function handle(Mailer $mailer) { $subject = "You got a new message from " . $this->sender->displayName(); $data = ['sender' => $this->sender, 'reciever' => $this->reciever, 'mail' => $this->mail]; $mailer->sendTo($this->reciever, $subject, 'emails.newmessage', $data); }