Releases: merodiro/Friendships
Releases · merodiro/Friendships
Change method name
add mutualFriendsCount
Added
- mutualFriendsCount
Add friends_ids
Added
$user->friends_ids($anotherUser)
Use less queries
Changed
- use less queries in friends() function
Add mutual friends
Added
- Mutual friends
$user->mutualFriends($anotherUser)
Format return values of checkFriendship() with underscores
Changed
- change the return value of checkFriendship() #17
Methods name changes
The purpose of these changes are mostly for grammatical correctness. The methods were changed so that their names are much clearer and immediately understandable.
- isFriendWith -> isFriendsWith
- friendRequestsTo -> friendRequestsReceived
- friendRequestsFrom -> friendRequestsSent
Support Support Auto-Discovery
- Add support for Support Auto-Discovery for laravel 5.5
adding isFriendWith
Check if user is friend with
$user->isFriendWith($anotherUser);
it returns true
if they are friends and false
if they aren't friends
Fix friend request from and to naming
Get a list of users who sent friend request to $user
$user->friendRequestsTo();
Get a list of users who have friend requests from $user
$user->friendRequestsFrom();