{"record":{"id":"3714295ec95b8107","repo":"filamentphp/filament","slug":"the-authenticated-user-object-must-be-an-eloquent","errorCode":null,"errorMessage":"The authenticated user object must be an Eloquent model to allow the profile page to update it.","messagePattern":"The authenticated user object must be an Eloquent model to allow the profile page to update it\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/Auth/Pages/EditProfile.php","lineNumber":105,"sourceCode":"        return 'profile';\n    }\n\n    public static function isTenantSubscriptionRequired(Panel $panel): bool\n    {\n        return false;\n    }\n\n    public function mount(): void\n    {\n        $this->fillForm();\n    }\n\n    public function getUser(): Authenticatable & Model\n    {\n        $user = Filament::auth()->user();\n\n        if (! $user instanceof Model) {\n            throw new LogicException('The authenticated user object must be an Eloquent model to allow the profile page to update it.');\n        }\n\n        return $user;\n    }\n\n    protected function fillForm(): void\n    {\n        $data = $this->getUser()->attributesToArray();\n\n        $this->callHook('beforeFill');\n\n        $data = $this->mutateFormDataBeforeFill($data);\n\n        $this->form->fill($data);\n\n        $this->callHook('afterFill');\n    }\n","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Auth/Pages/EditProfile.php#L87-L123","documentation":"Error \"The authenticated user object must be an Eloquent model to allow the profile page to update it.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Auth/Pages/EditProfile.php:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}