username = (string) $user->username; $this->siteEmail = (string) config('mail.from.address'); $this->site = (string) config('app.name'); $this->preheader = "User {$this->username} deleted their {$this->site} account."; } /** * @throws \Exception */ public function build(): static { return $this->from($this->siteEmail) ->brandedSubject('User account deleted') ->markdown('emails.markdown.accountDeleted', [ 'username' => $this->username, 'site' => $this->site, 'preheader' => $this->preheader, ]); } }