public function create(array $attributes)
    {
        $model = $this->getModelName();

        $nodeType = $model::create($attributes);

        $this->builderService->buildTable(
            $nodeType->getName(),
            $nodeType->getKey()
        );

        return $nodeType;
    }
public function create(array $attributes)
    {
        $model = $this->getModelName();

        $nodeType = $model::create($attributes);

        $this->builderService->buildTable(
            $nodeType->getName(),
            $nodeType->getKey()
        );

        return $nodeType;
    }
public function create ( array $ attributes ) { $ model = $ this -> getModelName ( ) ; $ nodeType = $ model :: create ( $ attributes ) ; $ this -> builderService -> buildTable ( $ nodeType -> getName ( ) , $ nodeType -> getKey ( ) ) ; return $ nodeType ; }
Creates a node type

@param array $attributes
@return NodeTypeContract
Creates a node type