username = (string) $user->username; $this->newPass = $newPass; $this->siteEmail = (string) config('mail.from.address'); $this->site = (string) config('app.name'); $this->preheader = 'Your password has been reset — temporary credentials inside.'; } /** * @throws \Exception */ public function build(): static { return $this->from($this->siteEmail) ->brandedSubject('Your password has been reset') ->markdown('emails.markdown.passwordReset', [ 'username' => $this->username, 'newPass' => $this->newPass, 'site' => $this->site, 'preheader' => $this->preheader, ]); } }