/**
  * Delete post by id
  *
  * @param $id
  * @return bool
  */
 public function delete($id)
 {
     $post = $this->getPostById($id);
     $this->post->detachFromAll($post['id']);
     $this->post->delete($post['id']);
     return true;
 }
 /**
  * Delete page by id
  *
  * @param $id
  * @return bool
  */
 public function delete($id)
 {
     $post = $this->getPageById($id);
     $this->post->delete($post['id']);
     return true;
 }