public function createVocabulary($name) {
    if ($this->vocabulary->where('name', $name)->count()) {
      throw new Exceptions\VocabularyExistsException();
    }

		return $this->vocabulary->create(['name' => $name]);
	}
public function createVocabulary($name) {
    if ($this->vocabulary->where('name', $name)->count()) {
      throw new Exceptions\VocabularyExistsException();
    }

		return $this->vocabulary->create(['name' => $name]);
	}
public function createVocabulary ( $ name ) { if ( $ this -> vocabulary -> where ( 'name' , $ name ) -> count ( ) ) { throw new Exceptions \ VocabularyExistsException ( ) ; } return $ this -> vocabulary -> create ( [ 'name' => $ name ] ) ; }
Create a new Vocabulary with the given name

@param string $name
The name of the Vocabulary

@return mixed
The Vocabulary object if created, FALSE if error creating,
Exception if the vocabulary name already exists.
Create a new Vocabulary with the given name