These docs are for v7. Click to read the latest docs for v9.

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();