src/Data/RelationInputService.php
public function apply(Builder $builder, Repository $repository, array $relations = [])
    {
        $relations = $this->getRelations($repository, $relations);

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

        return $builder->with($relations);
    }
public function apply ( Builder $ builder , Repository $ repository , array $ relations = [ ] ) { $ relations = $ this -> getRelations ( $ repository , $ relations ) ; return $ builder -> with ( $ relations ) ; }
Apply eager load relations to query builder

@param Builder $builder
@param Repository $repository
@param array $relations
@return Builder
Apply eager load relations to query builder