public function createTerm($vid, $name, $parent = 0, $weight = 0) {
    $vocabulary = $this->vocabulary->findOrFail($vid);

    $term = [
      'name' => $name,
      'vocabulary_id' => $vid,
      'parent' => $parent,
      'weight' => $weight,
    ];

    return $this->term->create($term);
  }