filamentphp/filament · error · InvalidArgumentException

Table empty state actions must be an instance of [{Action}]

Error message

Table empty state actions must be an instance of [{Action}] or [{ActionGroup}].

What it means

Error "Table empty state actions must be an instance of [{Action}] or [{ActionGroup}]." thrown in filamentphp/filament.

Source

Thrown at packages/tables/src/Table/Concerns/HasEmptyState.php:73

    }

    /**
     * @param  array<Action | ActionGroup> | ActionGroup  $actions
     */
    public function pushEmptyStateActions(array | ActionGroup $actions, bool $shouldOverwriteExistingActions = false): static
    {
        foreach (Arr::wrap($actions) as $action) {
            $action->table($this);

            if ($action instanceof ActionGroup) {
                /** @var array<string, Action> $flatActions */
                $flatActions = $action->getFlatActions();

                $this->mergeCachedFlatActions($flatActions, $shouldOverwriteExistingActions);
            } elseif ($action instanceof Action) {
                $this->cacheAction($action, $shouldOverwriteExistingActions);
            } else {
                throw new InvalidArgumentException('Table empty state actions must be an instance of [' . Action::class . '] or [' . ActionGroup::class . '].');
            }

            $this->emptyStateActions[] = $action;
        }

        return $this;
    }

    public function emptyStateHeading(string | Htmlable | Closure | null $heading): static
    {
        $this->emptyStateHeading = $heading;

        return $this;
    }

    public function emptyStateIcon(string | BackedEnum | Htmlable | Closure | null $icon): static
    {
        $this->emptyStateIcon = $icon;

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/tables/src/Table/Concerns/HasEmptyState.php:73 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/6d33c4fd57ad2614. Report an issue: GitHub.