*/ public function summarize(Builder $query, string $attribute): array { return $query->clone()->distinct()->pluck($attribute)->all(); } public function bulleted(bool | Closure $condition = true): static { $this->isBulleted = $condition; return $this; } public function isBulleted(): bool { return (bool) $this->evaluate($this->isBulleted); } }