filamentphp/filament · error · LogicException
Model [{$userClass}] does not have a [notify()] method.
Error message
Model [{$userClass}] does not have a [notify()] method. What it means
Error "Model [{$userClass}] does not have a [notify()] method." thrown in filamentphp/filament.
Source
Thrown at packages/panels/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:81
return;
}
$data = $this->form->getState();
$status = Password::broker(Filament::getAuthPasswordBroker())->sendResetLink(
$this->getCredentialsFromFormData($data),
function (CanResetPassword $user, #[SensitiveParameter] string $token): void {
if (
($user instanceof FilamentUser) &&
(! $user->canAccessPanel(Filament::getCurrentOrDefaultPanel()))
) {
return;
}
if (! method_exists($user, 'notify')) {
$userClass = $user::class;
throw new LogicException("Model [{$userClass}] does not have a [notify()] method.");
}
$notification = app(ResetPasswordNotification::class, ['token' => $token]);
$notification->url = Filament::getResetPasswordUrl($token, $user);
$user->notify($notification);
if (class_exists(PasswordResetLinkSent::class)) {
event(new PasswordResetLinkSent($user));
}
},
);
if ($status !== Password::RESET_LINK_SENT) {
$this->getFailureNotification($status)?->send();
return;
}View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/panels/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:81 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17).
Data as JSON: /api/errors/a07a6a7f6852e377.
Report an issue: GitHub.