overtrue/laravel-follow
:heart: This package helps you to add user based follow system to your model.
30 Releases
Latest: 3mo ago
6.0.0Latest
📋 Changes
- Laravel 13+ only\n- Minimum PHP 8.3\n- Update testbench/phpunit/tooling for Laravel 13\n- Add AGENTS.md
5.3.0
📋 What's Changed
- Added explicit nullable type to attachFollowStatus parameter by @captenmasin in https://github.com/overtrue/laravel-follow/pull/201
- Laravel 12.x Compatibility by @vool in https://github.com/overtrue/laravel-follow/pull/202
✨ New Contributors
- @captenmasin made their first contribution in https://github.com/overtrue/laravel-follow/pull/201
- @vool made their first contribution in https://github.com/overtrue/laravel-follow/pull/202
- Full Changelog: https://github.com/overtrue/laravel-follow/compare/5.2.0...5.3.0
5.2.0
Added Laravel 11 support. **Full Changelog**: https://github.com/overtrue/laravel-follow/compare/5.1.1...5.2.0
5.1.1
📋 What's Changed
- FIX(README.md): Update sample code by @MartinsOnuoha in https://github.com/overtrue/laravel-follow/pull/191
- Specified the vendor:publish --class in README.md by @titonova in https://github.com/overtrue/laravel-follow/pull/195
✨ New Contributors
- @MartinsOnuoha made their first contribution in https://github.com/overtrue/laravel-follow/pull/191
- @titonova made their first contribution in https://github.com/overtrue/laravel-follow/pull/195
- Full Changelog: https://github.com/overtrue/laravel-follow/compare/5.1.0...5.1.1
5.1.0
📋 What's Changed
- Added Laravel 10 support.
- Update composer.json by @ams-ryanolson in https://github.com/overtrue/laravel-follow/pull/184
- Update composer.json by @ams-ryanolson in https://github.com/overtrue/laravel-follow/pull/185
✨ New Contributors
- @ams-ryanolson made their first contribution in https://github.com/overtrue/laravel-follow/pull/184
- Full Changelog: https://github.com/overtrue/laravel-follow/compare/5.0.1...5.1.0
5.0.1
📋 What's Changed
- fix get config from the right file by @ahmedesa in https://github.com/overtrue/laravel-follow/pull/175
✨ New Contributors
- @ahmedesa made their first contribution in https://github.com/overtrue/laravel-follow/pull/175
- Full Changelog: https://github.com/overtrue/laravel-follow/compare/5.0.0...5.0.1
5.0.0
📋 What’s Changed
- Default table name `user_followers` changed to `followables`.
- Renamed `followers.follower_id` to `user_id`(you can change it in the config file `app/follow.php`).
- Renamed trait `Overtrue\LaravelFollow\Followable` to `use Overtrue\LaravelFollow\Traits\Followable`.
- `follow()`, `unfollow()` and `toggleFollow()` only accept model used `Overtrue\LaravelFollow\Traits\Followable` trait now.
- Removed `Followable::areFollowingEachOther` method.
- `rejectFollowRequestFrom()`, `acceptFollowRequestFrow()`, `hasRequestedToFollow()` and `isFollowedBy` only accept model used `Overtrue\LaravelFollow\Traits\Follower` triat now.
- Rename event property `followingId` to `followable_id`.
- Added event property `followable_type`.
- + 3 more
📦 Migrate from 4.x
- 1. Update `composer.json`:
- ```
- overtrue/laravel-follow:^5.0
- ```
- Then run composer update:
- ```bash
- composer update
- ```
- + 64 more
4.1.0
📋 Changes
- Fixed the problem of duplicate data insertion #166
- Added `approvedFollowings/notApprovedFollowings/approvedFollowers/notApprovedFollowers` relations #167 .
4.0.0
**Full Changelog**: https://github.com/overtrue/laravel-follow/compare/3.1.1...4.0.0
3.1.1
📋 What's Changed
- Disable un-published migration by @zombozo12 in https://github.com/overtrue/laravel-follow/pull/169
✨ New Contributors
- @zombozo12 made their first contribution in https://github.com/overtrue/laravel-follow/pull/169
- Full Changelog: https://github.com/overtrue/laravel-follow/compare/3.1.0...3.1.1
3.1.0
📦 Order by followers count
- You can query users order by followers count with following methods:
- `orderByFollowersCountDesc()`
- `orderByFollowersCountAsc()`
- `orderByFollowersCount(string $direction = 'desc')`
- example:
- ```php
- $users = User::orderByFollowersCountDesc()->get();
- $mostPopularUser = User::orderByFollowersCountDesc()->first();
- + 1 more
2.4.5
2.4.4
2.4.6
2.4.3
2.4.2
3.0.1
3.0.0
📋 Changes
- Added Followable::attachFollowStatus()
- Laravel 8.0+
- PHP 7.4+
2.4.1
2.4.0
📋 Changes
- Added `Followable::attachFollowStatus()`
2.3.0
2.2.1
2.2.0
2.1.1
2.1.0
📋 Changes
- Add follow request support. #138 #101
2.0.1
2.0.0
📦 Updated
- Updated relation table `user_follower`
- Rename `Overtrue\LaravelFollow\Traits\CanFollow` to `Overtrue\LaravelFollow\Traits\Followable `
🗑️ Removed
- Removed `Overtrue\LaravelFollow\Traits\CanBeFollowed`
- Removed Favorite feature and move to [overtrue/laravel-favorite](https://github.com/overtrue/laravel-favorite)
- Removed Like feature and move to [overtrue/laravel-like](https://github.com/overtrue/laravel-like)
- Removed Subscribe feature and move to [overtrue/laravel-subscribe](https://github.com/overtrue/laravel-subscribe)
- Removed Vote feature.
- Removed Bookmark feature.
- Removed events:
- `Overtrue\LaravelFollow\Events\RelationAttaching`
- + 5 more
1.1.16
1.1.15
1.1.14
