data = $data; } /** * Get the message envelope. */ // public function envelope(): Envelope // { // return new Envelope( // subject: 'Admin Password Reset Email', // ); // } // /** // * Get the message content definition. // */ // public function content(): Content // { // return new Content( // view: 'admin.pages.mail.send_otp', // ); // } public function build() { $otp = $this->data; return $this->subject('Mail from Cheers To Seasons') ->view('Admin.pages.mail.send_otp', ["content" => $otp]); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }