{"record":{"id":"8ea6997df770c8c6","repo":"filamentphp/filament","slug":"model-userclass-does-not-have-a-notify-me-8ea699","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/Register.php","lineNumber":174,"sourceCode":"    protected function handleRegistration(#[SensitiveParameter] array $data): Model\n    {\n        return $this->getUserModel()::create($data);\n    }\n\n    protected function sendEmailVerificationNotification(Model $user): void\n    {\n        if (! $user instanceof MustVerifyEmail) {\n            return;\n        }\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 defaultForm(Schema $schema): Schema\n    {\n        return $schema\n            ->statePath('data');\n    }\n\n    public function form(Schema $schema): Schema\n    {\n        return $schema\n            ->components([","sourceCodeStart":156,"sourceCodeEnd":192,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Auth/Pages/Register.php#L156-L192","documentation":"Error \"Model [{$userClass}] does not have a [notify()] method.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Auth/Pages/Register.php:174 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"}