emailTemplate = $emailTemplate; $this->data = $data; $this->data['body'] = $this->emailTemplate->body; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: BladeCompiler::render($this->emailTemplate->subject, $this->data), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( html: 'components.mail.base', with: $this->data, ); } }