filamentphp/filament · error · LogicException

Filter of class [$filterClass] must have a unique name, pass

Error message

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

What it means

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

Source

Thrown at packages/tables/src/Filters/BaseFilter.php:36

    use Concerns\HasName;
    use Concerns\HasSchema;
    use Concerns\InteractsWithTableQuery;

    protected string $evaluationIdentifier = 'filter';

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

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

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

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

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

        return $static;
    }

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

    public function getActiveCount(): int
    {
        return count($this->getIndicators());
    }

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/tables/src/Filters/BaseFilter.php:36 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/ca470b7fa88698b5. Report an issue: GitHub.