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 e243955 commit 3891bcdCopy full SHA for 3891bcd
README.md
@@ -55,7 +55,7 @@ $article->likes; // Iterable Illuminate\Database\Eloquent\Collection of existing
55
$article->liked(); // check if currently logged in user liked the article
56
$article->liked($myUserId);
57
58
-Article::whereLiked($myUserId) // find only articles where user liked them
+Article::whereLikedBy($myUserId) // find only articles where user liked them
59
->with('likeCounter') // highly suggested to allow eager load
60
->get();
61
```
0 commit comments