{"record":{"id":"a4a2455c0a597f7b","repo":"filamentphp/filament","slug":"table-actions-must-be-an-instance-of-action-or","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/HasRecordActions.php","lineNumber":67,"sourceCode":"        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                $action->defaultSize(Size::Small);\n                $action->defaultView($action::LINK_VIEW);\n\n                if ($this->modifyUngroupedRecordActionsUsing) {\n                    $this->evaluate($this->modifyUngroupedRecordActionsUsing, ['action' => $action]);\n                }\n\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->recordActions[] = $action;\n        }\n\n        return $this;\n    }\n\n    public function recordActionsColumnLabel(string | Htmlable | Closure | null $label): static\n    {\n        $this->recordActionsColumnLabel = $label;\n\n        return $this;\n    }\n\n    public function recordActionsAlignment(string | Closure | null $alignment = null): static\n    {\n        $this->recordActionsAlignment = $alignment;","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/tables/src/Table/Concerns/HasRecordActions.php#L49-L85","documentation":"Error \"Table actions must be an instance of [{Action}] or [{ActionGroup}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/tables/src/Table/Concerns/HasRecordActions.php:67 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"}