Reacterable Filtering

Setup models

Adding query scopes to Model described in Setup Reacterable page.

Usage

Fetch all Reacterables reacted to Reactable

$users = User::query()
    ->whereReactedTo($comment)
    ->get();

Fetch all Reacterables reacted to Reactable with exact reaction type

$users = User::query()
    ->whereReactedTo($comment, 'Like')
    ->get();

Fetch all Reacterables not reacted to Reactable

$users = User::query()
    ->whereNotReactedTo($comment)
    ->get();

Fetch all Reacterables not reacted to Reactable with exact reaction type

$users = User::query()
    ->whereNotReactedTo($comment, 'Like')
    ->get();