Download the PHP package timgavin/laravel-follow without Composer
On this page you can find all versions of the php package timgavin/laravel-follow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timgavin/laravel-follow
More information about timgavin/laravel-follow
Files in timgavin/laravel-follow
Package laravel-follow
Short Description A User can follow another User
License MIT
Homepage https://github.com/timgavin/laravel-follow
Informations about the package laravel-follow
Laravel Follow
A simple Laravel package for following users.
Requirements
- Laravel 9 or greater.
- Laravel
User
model.
Installation
Via Composer
Import Laravel Follow into your User model and add the trait.
Then run migrations.
Usage
Follow a user
Unfollow a user
Check if a user is following another user
Check if a user is followed by another user
Returns the users a user is following
Returns the users who are following a user
Returns the most recent users who are following a user
Returns an array of IDs of the users a user is following
Returns an array of IDs of the users who are following a user
Returns an array of IDs of the users a user is following, and who is following a user
Caches the IDs of the users a user is following. Default is 1 day.
Returns an array of IDs of the users a user is following.
Caches the IDs of the users who are following a user. Default is 1 day.
Returns an array of IDs of the users who are following a user.
Clears the Following cache
Clears the Followers cache
Change log
Please see the changelog for more information on what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
MIT. Please see the license file for more information.