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/Register.php:174

    protected function handleRegistration(#[SensitiveParameter] array $data): Model
    {
        return $this->getUserModel()::create($data);
    }

    protected function sendEmailVerificationNotification(Model $user): void
    {
        if (! $user instanceof MustVerifyEmail) {
            return;
        }

        if ($user->hasVerifiedEmail()) {
            return;
        }

        if (! method_exists($user, 'notify')) {
            $userClass = $user::class;

            throw new LogicException("Model [{$userClass}] does not have a [notify()] method.");
        }

        $notification = app(VerifyEmail::class);
        $notification->url = Filament::getVerifyEmailUrl($user);

        $user->notify($notification);
    }

    public function defaultForm(Schema $schema): Schema
    {
        return $schema
            ->statePath('data');
    }

    public function form(Schema $schema): Schema
    {
        return $schema
            ->components([

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/panels/src/Auth/Pages/Register.php:174 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/8ea6997df770c8c6. Report an issue: GitHub.