original_string: public function fields(array $fields = [])
      {
          if (!Arr::isAssoc($fields)) {
              $fields = array_combine($fields, $fields);
          }
  
          foreach ($fields as $field => $label) {
              $this->field($field, $label);
          }
  
          return $this;
      }
code: public function fields(array $fields = [])
      {
          if (!Arr::isAssoc($fields)) {
              $fields = array_combine($fields, $fields);
          }
  
          foreach ($fields as $field => $label) {
              $this->field($field, $label);
          }
  
          return $this;
      }
code_tokens: public function fields ( array $ fields = [ ] ) { if ( ! Arr :: isAssoc ( $ fields ) ) { $ fields = array_combine ( $ fields , $ fields ) ; } foreach ( $ fields as $ field => $ label ) { $ this -> field ( $ field , $ label ) ; } return $ this ; }
docstring: Add multiple fields.
  
  @param array $fields
  
  @return $this
docstring_tokens: Add multiple fields .