route()?->parameter('token'); return view('fo.auth.passwords.reset')->with( ['token' => $token, 'email' => $request->email] ); } protected function setUserPassword(Customer $customer, string $password): void { $result = $this->authService->resetPasswordFor($customer, $password); if ($result instanceof ValidationException) { throw ValidationException::withMessages([ 'error' => sprintf( '%s : %s', trans('validation.attributes.password'), $result->getMessage() ), ]); } } public function broker(): PasswordBroker { return Password::broker('customers'); } protected function guard(): StatefulGuard { return Auth::guard('frontend'); } protected function redirectTo(): string { return route('fo.pages.home'); } }