/** * send mail */ public function send() { $from = $this->fromEmail; $to = $this->toEmail; $name = $this->toName; $subject = $this->subject; $this->beauty->send($this->view, $this->datas, function ($message) use($from, $to, $name, $subject) { $message->from($from)->to($to, $name)->subject($subject); }); }