Reactable Filtering

Setup models

Adding query scopes to Model described in Setup Reactable page.

Usage

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