PHPackages                             ashmawi/laravel-follow - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ashmawi/laravel-follow

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

ashmawi/laravel-follow
======================

User follow unfollow system for Laravel.

1.0.0(4y ago)011MITPHP

Since Oct 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Ashmawi/laravel-follow)[ Packagist](https://packagist.org/packages/ashmawi/laravel-follow)[ RSS](/packages/ashmawi-laravel-follow/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel Follow
==============

[](#laravel-follow)

Installing
----------

[](#installing)

```
$ composer require ashmawi/laravel-follow

```

```
$ php artisan migrate

```

Configuration
-------------

[](#configuration)

This step is optional

```
$ php artisan vendor:publish --tag=laravel-follow-config

```

Migrations
----------

[](#migrations)

This step is also optional, if you want to custom the pivot table, you can publish the migration files

```
$ php artisan vendor:publish --tag=laravel-follow-migrations

```

Usage
-----

[](#usage)

### Traits

[](#traits)

```
use Ashmawi\LaravelFollow\Traits\Followable;

class User extends Authenticatable
{
    use Followable;
}
```

### API

[](#api)

```
$user1->follow($user2);
$user1->unfollow($user2);

$user1->isFollowing($user2)
```

### Get followings

[](#get-followings)

```
$user->followings
```

### Get followers

[](#get-followers)

```
$user->followers
```

### Aggregations

[](#aggregations)

```
// followings count
$user->followings()->count();

// with query where
$user->followings()->where('x', 'x')->count();

// followers count
$user->followers()->count();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1682d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/519ac77e0e68efca1c28efdd0f3fca74f653547e3a3662dedccf0eeac0c06e84?d=identicon)[Ashmawi](/maintainers/Ashmawi)

---

Tags

favoritefollowfollowersfollowinglaravellike

### Embed Badge

![Health badge](/badges/ashmawi-laravel-follow/health.svg)

```
[![Health](https://phpackages.com/badges/ashmawi-laravel-follow/health.svg)](https://phpackages.com/packages/ashmawi-laravel-follow)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
