{"record":{"id":"6d33c4fd57ad2614","repo":"filamentphp/filament","slug":"table-empty-state-actions-must-be-an-instance-of","errorCode":null,"errorMessage":"Table empty state actions must be an instance of [{Action}] or [{ActionGroup}].","messagePattern":"Table empty state actions must be an instance of \\[(.+?)\\] or \\[(.+?)\\]\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"packages/tables/src/Table/Concerns/HasEmptyState.php","lineNumber":73,"sourceCode":"    }\n\n    /**\n     * @param  array<Action | ActionGroup> | ActionGroup  $actions\n     */\n    public function pushEmptyStateActions(array | ActionGroup $actions, bool $shouldOverwriteExistingActions = false): static\n    {\n        foreach (Arr::wrap($actions) as $action) {\n            $action->table($this);\n\n            if ($action instanceof ActionGroup) {\n                /** @var array<string, Action> $flatActions */\n                $flatActions = $action->getFlatActions();\n\n                $this->mergeCachedFlatActions($flatActions, $shouldOverwriteExistingActions);\n            } elseif ($action instanceof Action) {\n                $this->cacheAction($action, $shouldOverwriteExistingActions);\n            } else {\n                throw new InvalidArgumentException('Table empty state actions must be an instance of [' . Action::class . '] or [' . ActionGroup::class . '].');\n            }\n\n            $this->emptyStateActions[] = $action;\n        }\n\n        return $this;\n    }\n\n    public function emptyStateHeading(string | Htmlable | Closure | null $heading): static\n    {\n        $this->emptyStateHeading = $heading;\n\n        return $this;\n    }\n\n    public function emptyStateIcon(string | BackedEnum | Htmlable | Closure | null $icon): static\n    {\n        $this->emptyStateIcon = $icon;","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/tables/src/Table/Concerns/HasEmptyState.php#L55-L91","documentation":"Error \"Table empty state actions must be an instance of [{Action}] or [{ActionGroup}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/tables/src/Table/Concerns/HasEmptyState.php:73 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"}