src/NodeType.php
public function addField(array $attributes)
    {
        $field = $this->fields()->create($attributes);

        $this->save();

        return $field;
    }
public function addField(array $attributes)
    {
        $field = $this->fields()->create($attributes);

        $this->save();

        return $field;
    }
public function addField ( array $ attributes ) { $ field = $ this -> fields ( ) -> create ( $ attributes ) ; $ this -> save ( ) ; return $ field ; }
Add a field to the node type

@param array $attributes
@return Eloquent
Add a field to the node type