-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why getFriends method returns all friends ? #144
Comments
Hey, Can you share your group model & migration and the -TT |
config/friendships.php `<?php return [
];` Migration:- `class CreateFriendshipsGroupsTable extends Migration
}` |
Does the group title you are retrieving from -TT |
nope, also i tried this -> $user->getFriends($perPage = 20, 'family'); but didn't work. it returns empty array. and one question - Does this package supports a 6.8 laravel version and 7.2 php version? |
Hello,
Requirement :- to fetch friends of a specific group and I have used getFriends($perPage = 20, $group_name) method.
Problem :- getFriends($perPage = 20, $group_name) returns all friends of application and also getFriendsCount($group_name) returns count of all friends of application. can you please help me?
Here is code:
foreach ($groups as $group) { $group_name = $group->title; $group_connections = $user->getFriends($perPage = 20, $group_name); }
Thanks in advance!
The text was updated successfully, but these errors were encountered: