filamentphp/filament · error · InvalidArgumentException
Table actions must be an instance of [{Action}] or [{ActionG
Error message
Table actions must be an instance of [{Action}] or [{ActionGroup}]. What it means
Error "Table actions must be an instance of [{Action}] or [{ActionGroup}]." thrown in filamentphp/filament.
Source
Thrown at packages/tables/src/Table/Concerns/HasRecordActions.php:67
foreach (Arr::wrap($actions) as $action) {
$action->table($this);
if ($action instanceof ActionGroup) {
/** @var array<string, Action> $flatActions */
$flatActions = $action->getFlatActions();
$this->mergeCachedFlatActions($flatActions);
} elseif ($action instanceof Action) {
$action->defaultSize(Size::Small);
$action->defaultView($action::LINK_VIEW);
if ($this->modifyUngroupedRecordActionsUsing) {
$this->evaluate($this->modifyUngroupedRecordActionsUsing, ['action' => $action]);
}
$this->cacheAction($action);
} else {
throw new InvalidArgumentException('Table actions must be an instance of [' . Action::class . '] or [' . ActionGroup::class . '].');
}
$this->recordActions[] = $action;
}
return $this;
}
public function recordActionsColumnLabel(string | Htmlable | Closure | null $label): static
{
$this->recordActionsColumnLabel = $label;
return $this;
}
public function recordActionsAlignment(string | Closure | null $alignment = null): static
{
$this->recordActionsAlignment = $alignment;View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/tables/src/Table/Concerns/HasRecordActions.php:67 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/a4a2455c0a597f7b.
Report an issue: GitHub.