original_string: public function addField(array $attributes)
      {
          $field = $this->fields()->create($attributes);
  
          $this->save();
  
          return $field;
      }
code: public function addField(array $attributes)
      {
          $field = $this->fields()->create($attributes);
  
          $this->save();
  
          return $field;
      }
code_tokens: public function addField ( array $ attributes ) { $ field = $ this -> fields ( ) -> create ( $ attributes ) ; $ this -> save ( ) ; return $ field ; }
docstring: Add a field to the node type
  
  @param array $attributes
  @return Eloquent
docstring_tokens: Add a field to the node type