{"record":{"id":"a07a6a7f6852e377","repo":"filamentphp/filament","slug":"model-userclass-does-not-have-a-notify-me-a07a6a","errorCode":null,"errorMessage":"Model [{$userClass}] does not have a [notify()] method.","messagePattern":"Model \\[(.+?)\\] does not have a \\[notify\\(\\)\\] method\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/Auth/Pages/PasswordReset/RequestPasswordReset.php","lineNumber":81,"sourceCode":"            return;\n        }\n\n        $data = $this->form->getState();\n\n        $status = Password::broker(Filament::getAuthPasswordBroker())->sendResetLink(\n            $this->getCredentialsFromFormData($data),\n            function (CanResetPassword $user, #[SensitiveParameter] string $token): void {\n                if (\n                    ($user instanceof FilamentUser) &&\n                    (! $user->canAccessPanel(Filament::getCurrentOrDefaultPanel()))\n                ) {\n                    return;\n                }\n\n                if (! method_exists($user, 'notify')) {\n                    $userClass = $user::class;\n\n                    throw new LogicException(\"Model [{$userClass}] does not have a [notify()] method.\");\n                }\n\n                $notification = app(ResetPasswordNotification::class, ['token' => $token]);\n                $notification->url = Filament::getResetPasswordUrl($token, $user);\n\n                $user->notify($notification);\n\n                if (class_exists(PasswordResetLinkSent::class)) {\n                    event(new PasswordResetLinkSent($user));\n                }\n            },\n        );\n\n        if ($status !== Password::RESET_LINK_SENT) {\n            $this->getFailureNotification($status)?->send();\n\n            return;\n        }","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Auth/Pages/PasswordReset/RequestPasswordReset.php#L63-L99","documentation":"Error \"Model [{$userClass}] does not have a [notify()] method.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:81 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"}