{"record":{"id":"ca54aff25c2f8add","repo":"filamentphp/filament","slug":"model-userclass-does-not-have-a-notify-me-ca54af","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/EmailVerification/EmailVerificationPrompt.php","lineNumber":53,"sourceCode":"\n    protected function getVerifiable(): MustVerifyEmail\n    {\n        /** @var MustVerifyEmail $user */\n        $user = Filament::auth()->user();\n\n        return $user;\n    }\n\n    protected function sendEmailVerificationNotification(MustVerifyEmail $user): void\n    {\n        if ($user->hasVerifiedEmail()) {\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(VerifyEmail::class);\n        $notification->url = Filament::getVerifyEmailUrl($user);\n\n        $user->notify($notification);\n    }\n\n    public function resendNotificationAction(): Action\n    {\n        return Action::make('resendNotification')\n            ->link()\n            ->label(__('filament-panels::auth/pages/email-verification/email-verification-prompt.actions.resend_notification.label') . '.')\n            ->size('sm')\n            ->action(function (): void {\n                try {\n                    $this->rateLimit(2);\n                } catch (TooManyRequestsException $exception) {","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Auth/Pages/EmailVerification/EmailVerificationPrompt.php#L35-L71","documentation":"Error \"Model [{$userClass}] does not have a [notify()] method.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Auth/Pages/EmailVerification/EmailVerificationPrompt.php:53 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"}