Usage
All methods available on this package to be used
Save interactions
use OpenSoutheners\LaravelUserInteractions\Support\Facades\Interaction;
use OpenSoutheners\LaravelUserInteractions\UserInteractionType;
// User ID 1 will follow User ID 2
Interaction::from(User::find(1))
->to(User::find(2))
->does(UserInteractionType::Follow); // returns UserInteraction persisted modeluse OpenSoutheners\LaravelUserInteractions\UserInteractionType;
app('user.interaction')->from(User::find(1))
->to(User::find(2))
->does(UserInteractionType::Follow);Toggle removal when interaction exists
Checking existence of interaction
Query interactions
Last updated