x-laravel/followable
A Laravel package that adds follow and unfollow behavior to your models. Attach polymorphic follower relationships, check whether a model is followed, and query followers or followings with a simple, reusable trait.
x-laravel/followable adds a lightweight follow system to any Laravel model. Attach the provided trait to users or other entities and instantly get polymorphic followers and following relationships, powered by a single pivot table.
follow(), unfollow(), and toggleFollow() APIsfollowers() and following() relationships with countsisFollowing() and follows()$user->follow($post->author);
$user->isFollowing($author); // true
$author->followers()->count();
How can I help you explore Laravel packages today?