resetLink = $resetLink; $this->siteEmail = config('mail.from.address'); $siteName = config('app.name'); $this->siteTitle = is_array($siteName) ? (string) ($siteName[0] ?? '') : (string) ($siteName ?? ''); } /** * Build the message. * * * @throws \Exception */ public function build(): static { return $this->from($this->siteEmail)->subject('Forgotten password reset')->view('emails.forgottenPassword')->with(['resetLink' => $this->resetLink, 'site' => $this->siteTitle]); } }