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

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

        return $this;
    }
public function fields ( $ fields ) { foreach ( $ this -> resources as $ resource ) { $ resource -> fields ( $ fields ) ; } return $ this ; }
Request a restricted set of fields.

@param array|null $fields

@return $this
Request a restricted set of fields .