Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
timgavin committed Oct 27, 2023
1 parent ac17f83 commit 37872e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 37872e5

Please sign in to comment.