src/Collection.php
public function with($relationships)
    {
        foreach ($this->resources as $resource) {
            $resource->with($relationships);
        }

        return $this;
    }
public function with($relationships)
    {
        foreach ($this->resources as $resource) {
            $resource->with($relationships);
        }

        return $this;
    }
public function with ( $ relationships ) { foreach ( $ this -> resources as $ resource ) { $ resource -> with ( $ relationships ) ; } return $ this ; }
Request a relationship to be included for all resources.

@param string|array $relationships

@return $this
Request a relationship to be included for all resources .