diff --git a/src/Traits/Actions/Comment/isCommentable.php b/src/Traits/Actions/Comment/isCommentable.php index 9fd3ba7..368a64a 100644 --- a/src/Traits/Actions/Comment/isCommentable.php +++ b/src/Traits/Actions/Comment/isCommentable.php @@ -19,20 +19,6 @@ public function commentBy(Model $commenter, string $body) return $this->comments()->make(['commentable' => $this, 'comment' => $body])->commenter()->associate($commenter)->save(); } - /** - * Uncomment with a Model - * - * @param Model $commenter - * @return boolean - */ - public function unCommentBy(Model $commenter) - { - if ($comment = $this->comments()->where(['commenter_id' => $commenter->getKey(), 'commenter_type' => get_class($commenter)])->first()) - return $comment->delete(); - - return false; - } - /** * Has Commented By Commenter * diff --git a/src/Traits/Actions/Comment/isCommenter.php b/src/Traits/Actions/Comment/isCommenter.php index 9544a71..63ae50d 100644 --- a/src/Traits/Actions/Comment/isCommenter.php +++ b/src/Traits/Actions/Comment/isCommenter.php @@ -19,20 +19,6 @@ public function comment(Model $commentable, string $body) return $this->comments()->make(['commenter' => $this, 'comment' => $body])->commentable()->associate($commentable)->save(); } - /** - * Uncomment Model - * - * @param Model $commentable - * @return boolean - */ - public function uncomment(Model $commentable) - { - if ($comment = $this->comments()->where(['commentable_id' => $commentable->getKey(), 'commentable_type' => get_class($commentable)])->first()) - return $comment->delete(); - - return false; - } - /** * Has Commented By Commenter *