public function create(ModelInterface $model, array $belongsTo)
    {
        $taxonomy = $this->container->make(TaxonomySingularity::class);

        $taxonomy
            ->setModel($model)
            ->setBelongsTo($belongsTo)
            ->boot();

        return $taxonomy;
    }
public function create(ModelInterface $model, array $belongsTo)
    {
        $taxonomy = $this->container->make(TaxonomySingularity::class);

        $taxonomy
            ->setModel($model)
            ->setBelongsTo($belongsTo)
            ->boot();

        return $taxonomy;
    }
public function create ( ModelInterface $ model , array $ belongsTo ) { $ taxonomy = $ this -> container -> make ( TaxonomySingularity :: class ) ; $ taxonomy -> setModel ( $ model ) -> setBelongsTo ( $ belongsTo ) -> boot ( ) ; return $ taxonomy ; }
Create taxonomy.

@param  \Assely\Contracts\Singularity\Model\ModelInterface $model
@param  array $belongsTo

@return \Assely\Taxonomy\TaxonomySingularity
Create taxonomy .