{"record":{"id":"267ac35543967b59","repo":"filamentphp/filament","slug":"table-actions-must-be-an-instance-of-action-or-267ac3","errorCode":null,"errorMessage":"Table actions must be an instance of [{Action}] or [{ActionGroup}].","messagePattern":"Table actions must be an instance of \\[(.+?)\\] or \\[(.+?)\\]\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"packages/tables/src/Table/Concerns/HasToolbarActions.php","lineNumber":62,"sourceCode":"    }\n\n    /**\n     * @param  array<Action | ActionGroup> | ActionGroup  $actions\n     */\n    public function pushToolbarActions(array | ActionGroup $actions): 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);\n            } elseif ($action instanceof Action) {\n                $this->cacheAction($action);\n            } else {\n                throw new InvalidArgumentException('Table actions must be an instance of [' . Action::class . '] or [' . ActionGroup::class . '].');\n            }\n\n            $this->toolbarActions[] = $action;\n        }\n\n        return $this;\n    }\n\n    /**\n     * @return array<Action | ActionGroup>\n     */\n    public function getToolbarActions(): array\n    {\n        return $this->toolbarActions;\n    }\n}\n","sourceCodeStart":44,"sourceCodeEnd":79,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/tables/src/Table/Concerns/HasToolbarActions.php#L44-L79","documentation":"Error \"Table actions must be an instance of [{Action}] or [{ActionGroup}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/tables/src/Table/Concerns/HasToolbarActions.php:62 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"}