src/Eloquent/Concerns/IncludesModels.php
protected function with($query, EncodingParametersInterface $parameters)
    {
        $query->with($this->getRelationshipPaths(
            (array) $parameters->getIncludePaths()
        ));
    }
protected function with($query, EncodingParametersInterface $parameters)
    {
        $query->with($this->getRelationshipPaths(
            (array) $parameters->getIncludePaths()
        ));
    }
Add eager loading to the query.

@param Builder $query
@param EncodingParametersInterface $parameters
@return void