fromName ?: $this->companyName)); $fromAddress = (string) config('mail.from.address'); return new Envelope( from: $display !== '' && $fromAddress !== '' ? new Address($fromAddress, $display) : null, subject: $this->subjectLine, replyTo: $this->replyToAddress ? [$this->replyToAddress] : [], ); } public function content(): Content { return new Content( view: 'email.contact-message', with: [ 'bodyText' => $this->bodyText, 'fromName' => $this->fromName, 'logoUrl' => $this->logoUrl, 'companyName' => $this->companyName, ], ); } }