{"record":{"id":"2b8b37ce2be69473","repo":"filamentphp/filament","slug":"the-class-page-must-implement-the-filament-pa","errorCode":null,"errorMessage":"The [{class}] page must implement the [Filament\\Pages\\Dashboard\\Concerns\\HasFilters] trait.","messagePattern":"The \\[(.+?)\\] page must implement the \\[Filament\\\\Pages\\\\Dashboard\\\\Concerns\\\\HasFilters\\] trait\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/Pages/Dashboard/Actions/FilterAction.php","lineNumber":36,"sourceCode":"    }\n\n    protected function setUp(): void\n    {\n        parent::setUp();\n\n        $this->label(__('filament-panels::pages/dashboard.actions.filter.label'));\n\n        $this->modalHeading(fn (): string => __('filament-panels::pages/dashboard.actions.filter.modal.heading'));\n\n        $this->modalSubmitActionLabel(__('filament-panels::pages/dashboard.actions.filter.modal.actions.apply.label'));\n\n        $this->icon(FilamentIcon::resolve(PanelsIconAlias::PAGES_DASHBOARD_ACTIONS_FILTER) ?? Heroicon::Funnel);\n\n        $this->defaultColor('gray');\n\n        $this->fillForm(function (Component $livewire): ?array {\n            if (! property_exists($livewire, 'filters')) {\n                throw new LogicException('The [' . $livewire::class . '] page must implement the [' . Dashboard\\Concerns\\HasFilters::class . '] trait.');\n            }\n\n            return $livewire->filters;\n        });\n\n        $this->action(function (array $data, Component $livewire): void {\n            if (! property_exists($livewire, 'filters')) {\n                return;\n            }\n\n            $livewire->filters = $data;\n\n            $this->success();\n        });\n\n        $this->slideOver();\n\n        $this->modalWidth('md');","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Pages/Dashboard/Actions/FilterAction.php#L18-L54","documentation":"Error \"The [{class}] page must implement the [Filament\\Pages\\Dashboard\\Concerns\\HasFilters] trait.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Pages/Dashboard/Actions/FilterAction.php:36 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"}