src/Handler.php
protected function parseFields($params)
    {
        foreach (explode(',', $params) as $field) {
            // Only add the fields that are on the base resource
            if (! Str::contains($field, '.')) {
                $this->fields[] = trim($field);
            } else {
                $this->additionalFields[] = trim($field);
            }
        }
    }
protected function parseFields($params)
    {
        foreach (explode(',', $params) as $field) {
            // Only add the fields that are on the base resource
            if (! Str::contains($field, '.')) {
                $this->fields[] = trim($field);
            } else {
                $this->additionalFields[] = trim($field);
            }
        }
    }
protected function parseFields ( $ params ) { foreach ( explode ( ',' , $ params ) as $ field ) { // Only add the fields that are on the base resource if ( ! Str :: contains ( $ field , '.' ) ) { $ this -> fields [ ] = trim ( $ field ) ; } else { $ this -> additionalFields [ ] = trim ( $ field ) ; } } }
Parse the fields parameter.

@param  string $params
@return void
Parse the fields parameter .