diff --git a/changelog.md b/changelog.md index 01b35a3..9ad349e 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,11 @@ All notable changes to `Laravel Follow` will be documented in this file. +## 1.1.9 + +- Replaced `auth()` with `$this` +- Added method to get latest followers + ## 1.1.8 - Bug fixes diff --git a/readme.md b/readme.md index 6e860f0..1e15926 100644 --- a/readme.md +++ b/readme.md @@ -74,6 +74,12 @@ Returns the users who are following a user auth()->user()->getFollowers(); ``` +Returns the most recent users who are following a user +```php +// default limit is 5 +auth()->user()->getLatestFollowers($limit); +``` + Returns an array of IDs of the users a user is following ```php auth()->user()->getFollowingIds();