diff --git a/src/Traits/HasComments.php b/src/Traits/HasComments.php index bf8bc07..27b0a4f 100644 --- a/src/Traits/HasComments.php +++ b/src/Traits/HasComments.php @@ -42,7 +42,7 @@ trait HasComments 'is_approved' => ($user instanceof Commentator) ? ! $user->needsCommentApproval($this) : false, 'user_id' => is_null($user) ? null : $user->getKey(), 'commentable_id' => $this->getKey(), - 'commentable_type' => get_class(), + 'commentable_type' => get_class($this), ]); return $this->comments()->save($comment);