filamentphp/filament · error · LogicException

No rule builder component found.

Error message

No rule builder component found.

What it means

Error "No rule builder component found." thrown in filamentphp/filament.

Source

Thrown at packages/tables/src/Filters/QueryBuilder.php:422

            if (($maxRules !== null) && ($ruleCount > $maxRules)) {
                return true;
            }
        }

        return false;
    }

    protected function getRuleBuilder(): RuleBuilder
    {
        if ($this->cachedRuleBuilder instanceof RuleBuilder) {
            return $this->cachedRuleBuilder;
        }

        $builder = $this->getSchema()->getComponent(fn (Component $component): bool => $component instanceof RuleBuilder);

        if (! ($builder instanceof RuleBuilder)) {
            throw new LogicException('No rule builder component found.');
        }

        return $this->cachedRuleBuilder = $builder;
    }

    protected function getNestedRuleBuilder(Schema $schema, string $orGroupIndex): RuleBuilder
    {
        $builder = $schema
            ->getComponent(fn (Component $component): bool => $component instanceof Repeater)
            ?->getChildSchema($orGroupIndex)
            ?->getComponent(fn (Component $component): bool => $component instanceof RuleBuilder);

        if (! ($builder instanceof RuleBuilder)) {
            throw new LogicException('No nested rule builder component found.');
        }

        return $builder;
    }

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/tables/src/Filters/QueryBuilder.php:422 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/3ff3387d6bc3c0a5. Report an issue: GitHub.