public function getTaxonomy(EntityContract $entity)
    {
        return $this->getRelationManager($entity)->findOrCreateOrFail(['name' => $this->getTaxonomyName()])->getResource();
    }
public function getTaxonomy(EntityContract $entity)
    {
        return $this->getRelationManager($entity)->findOrCreateOrFail(['name' => $this->getTaxonomyName()])->getResource();
    }
public function getTaxonomy ( EntityContract $ entity ) { return $ this -> getRelationManager ( $ entity ) -> findOrCreateOrFail ( [ 'name' => $ this -> getTaxonomyName ( ) ] ) -> getResource ( ) ; }
Create if doesn't exists a taxonomy given name.

@param EntityContract $entity

@return \Railken\Amethyst\Models\Taxonomy
Create if doesn t exists a taxonomy given name .