filamentphp/filament · error · LogicException

Column of class [$columnClass] must have a unique name, pass

Error message

Column of class [$columnClass] must have a unique name, passed to the [make()] method.

What it means

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

Source

Thrown at packages/tables/src/Columns/Column.php:78

    protected string $evaluationIdentifier = 'column';

    protected string $viewIdentifier = 'column';

    protected ?string $cachedCellAttributeHtml = null;

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

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

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

        if (blank($name)) {
            throw new LogicException("Column of class [$columnClass] must have a unique name, passed to the [make()] method.");
        }

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

        return $static;
    }

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

    public function getTable(): Table
    {
        return $this->table ?? $this->getGroup()?->getTable() ?? $this->getLayout()?->getTable() ?? throw new LogicException("The column [{$this->getName()}] is not mounted to a table.");
    }

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/tables/src/Columns/Column.php:78 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/b2f16367e50e2b36. Report an issue: GitHub.