filamentphp/filament · error · InvalidArgumentException

Export column of class [$exportColumnClass] must have a uniq

Error message

Export column of class [$exportColumnClass] must have a unique name, passed to the [make()] method.

What it means

Error "Export column of class [$exportColumnClass] must have a unique name, passed to the [make()] method." thrown in filamentphp/filament.

Source

Thrown at packages/actions/src/Exports/ExportColumn.php:49

    protected ?Exporter $exporter = null;

    protected bool | Closure $isEnabledByDefault = true;

    protected string $evaluationIdentifier = 'column';

    final public function __construct(string $name)
    {
        $this->name($name);
    }

    public static function make(?string $name = null): static
    {
        $exportColumnClass = static::class;

        $name ??= static::getDefaultName();

        if (blank($name)) {
            throw new InvalidArgumentException("Export column of class [$exportColumnClass] must have a unique name, passed to the [make()] method.");
        }

        $static = app($exportColumnClass, ['name' => $name]);
        $static->configure();

        return $static;
    }

    public static function getDefaultName(): ?string
    {
        return null;
    }

    public function name(string $name): static
    {
        $this->name = $name;

        return $this;

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/actions/src/Exports/ExportColumn.php:49 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/c47a70529cdacc1e. Report an issue: GitHub.