public function handleBuilder($builder, $value)
    {
        $within = $this->directiveArgValue('within');

        /** @var \Illuminate\Database\Eloquent\Model $modelClass */
        $modelClass = get_class(
            $builder->getModel()
        );

        /** @var \Laravel\Scout\Builder $builder */
        $builder = $modelClass::search($value);

        if ($within !== null) {
            $builder->within($within);
        }

        return $builder;
    }