public function apply(Builder $builder, Repository $repository, array $relations = [])
    {
        $relations = $this->getRelations($repository, $relations);

        return $builder->with($relations);
    }