/**
  * Delete category by id
  *
  * @param $id
  * @return bool
  */
 public function delete($id)
 {
     $category = $this->findById($id);
     $this->post->detachAllFromCategory($category['id']);
     $this->category->delete($category['id']);
     return true;
 }