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

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