Reactable Filtering
Fetch all Reactables
reacted by Reacter
$reacter = $user->getLoveReacter();
$comments = Comment::query()
->whereReactedBy($reacter)
->get();
Fetch all Reactables
reacted by Reacter
with reaction type
$reacter = $user->getLoveReacter();
$reactionType = ReactionType::fromName('Like');
$comments = Comment::query()
->whereReactedByWithType($reacter, $reactionType)
->get();
Updated almost 6 years ago