data = $data; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( // replyTo: [ // new Address($this->data["email"], $this->data["name"]), // ], subject: $this->data["subject"], ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: ($this->data["email_template"]) ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }