mailLocale()), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.reset-password', with: [ 'expiresInMinutes' => (int) config('auth.passwords.users.expire', 60), 'locale' => $this->mailLocale(), 'resetUrl' => $this->resetUrl, 'userName' => $this->user->name, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } private function mailLocale(): string { return $this->user->preferredLocale() ?? 'en'; } }