filamentphp/filament · error · LogicException

The resource [{static::class}] does not have an [index] page

Error message

The resource [{static::class}] does not have an [index] page. Define [getIndexUrl()] for alternative routing.

What it means

Error "The resource [{static::class}] does not have an [index] page. Define [getIndexUrl()] for alternative routing." thrown in filamentphp/filament.

Source

Thrown at packages/panels/src/Resources/Resource/Concerns/CanGenerateUrls.php:123

                    'record' => $record,
                ], $isAbsolute, $panel, $tenant, $shouldGuessMissingParameters);
            }

            if ($parentResource::hasPage('edit')) {
                return $parentResource::getUrl('edit', [
                    'relation' => $parentResourceRegistration->getRelationshipName(),
                    ...$parameters,
                    'record' => $record,
                ], $isAbsolute, $panel, $tenant, $shouldGuessMissingParameters);
            }

            if ($parentResource::hasPage('index')) {
                return $parentResource::getUrl('index', $parameters, $isAbsolute, $panel, $tenant, $shouldGuessMissingParameters);
            }
        }

        if (! static::hasPage('index')) {
            throw new LogicException('The resource [' . static::class . '] does not have an [index] page. Define [getIndexUrl()] for alternative routing.');
        }

        return static::getUrl('index', $parameters, $isAbsolute, $panel, $tenant, $shouldGuessMissingParameters);
    }
}

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/panels/src/Resources/Resource/Concerns/CanGenerateUrls.php:123 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/c7f197a9fd471841. Report an issue: GitHub.