filamentphp/filament · error · LogicException

The [{class}] page must implement the [Filament\Pages\Dashbo

Error message

The [{class}] page must implement the [Filament\Pages\Dashboard\Concerns\HasFilters] trait.

What it means

Error "The [{class}] page must implement the [Filament\Pages\Dashboard\Concerns\HasFilters] trait." thrown in filamentphp/filament.

Source

Thrown at packages/panels/src/Pages/Dashboard/Actions/FilterAction.php:36

    }

    protected function setUp(): void
    {
        parent::setUp();

        $this->label(__('filament-panels::pages/dashboard.actions.filter.label'));

        $this->modalHeading(fn (): string => __('filament-panels::pages/dashboard.actions.filter.modal.heading'));

        $this->modalSubmitActionLabel(__('filament-panels::pages/dashboard.actions.filter.modal.actions.apply.label'));

        $this->icon(FilamentIcon::resolve(PanelsIconAlias::PAGES_DASHBOARD_ACTIONS_FILTER) ?? Heroicon::Funnel);

        $this->defaultColor('gray');

        $this->fillForm(function (Component $livewire): ?array {
            if (! property_exists($livewire, 'filters')) {
                throw new LogicException('The [' . $livewire::class . '] page must implement the [' . Dashboard\Concerns\HasFilters::class . '] trait.');
            }

            return $livewire->filters;
        });

        $this->action(function (array $data, Component $livewire): void {
            if (! property_exists($livewire, 'filters')) {
                return;
            }

            $livewire->filters = $data;

            $this->success();
        });

        $this->slideOver();

        $this->modalWidth('md');

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/panels/src/Pages/Dashboard/Actions/FilterAction.php:36 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/2b8b37ce2be69473. Report an issue: GitHub.