We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c598d6 commit 1ae27feCopy full SHA for 1ae27fe
1 file changed
src/Traits/HasComments.php
@@ -42,7 +42,7 @@ public function commentAsUser(?Model $user, string $comment)
42
'is_approved' => ($user instanceof Commentator) ? ! $user->needsCommentApproval($this) : false,
43
'user_id' => is_null($user) ? null : $user->getKey(),
44
'commentable_id' => $this->getKey(),
45
- 'commentable_type' => get_class(),
+ 'commentable_type' => get_class($this),
46
]);
47
48
return $this->comments()->save($comment);
0 commit comments