Reactable Filtering
Fetch all Reactables reacted by Reacterable
$comments = Comment::query()
->whereReactedBy($user)
->get();
Fetch all Reactables reacted by Reacterable with exact reaction type
$comments = Comment::query()
->whereReactedBy($user, 'Like')
->get();
Fetch all Reactables not reacted by Reacterable
$comments = Comment::query()
->whereNotReactedBy($user)
->get();
Fetch all Reactables not reacted by Reacterable with exact reaction type
$comments = Comment::query()
->whereNotReactedBy($user, 'Like')
->get();
Updated over 6 years ago
