original_string: protected function addField($name, $label = '')
      {
          $field = new Field($name, $label);
  
          $field->setParent($this);
  
          $this->overwriteExistingField($name);
  
          return tap($field, function ($field) {
              $this->fields->push($field);
          });
      }
code: protected function addField($name, $label = '')
      {
          $field = new Field($name, $label);
  
          $field->setParent($this);
  
          $this->overwriteExistingField($name);
  
          return tap($field, function ($field) {
              $this->fields->push($field);
          });
      }
code_tokens: protected function addField ( $ name , $ label = '' ) { $ field = new Field ( $ name , $ label ) ; $ field -> setParent ( $ this ) ; $ this -> overwriteExistingField ( $ name ) ; return tap ( $ field , function ( $ field ) { $ this -> fields -> push ( $ field ) ; } ) ; }
docstring: Add a model field to show.
  
  @param string $name
  @param string $label
  
  @return Field
docstring_tokens: Add a model field to show .