Skip to content

Commit 3891bcd

Browse files
authored
Fixes #22
1 parent e243955 commit 3891bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $article->likes; // Iterable Illuminate\Database\Eloquent\Collection of existing
5555
$article->liked(); // check if currently logged in user liked the article
5656
$article->liked($myUserId);
5757

58-
Article::whereLiked($myUserId) // find only articles where user liked them
58+
Article::whereLikedBy($myUserId) // find only articles where user liked them
5959
->with('likeCounter') // highly suggested to allow eager load
6060
->get();
6161
```

0 commit comments

Comments
 (0)