We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6a44d commit bda7fb8Copy full SHA for bda7fb8
app/Helpers/HasLikes.php
@@ -41,6 +41,6 @@ public function isLikedBy(User $user): bool
41
42
public function getLikesCountAttribute(): int
43
{
44
- return $this->likes->count();
+ return $this->likes()->count();
45
}
46
0 commit comments