{"action":"created","issue":{"url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/56","repository_url":"https://api.github.com/repos/hootlex/laravel-friendships","labels_url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/56/comments","events_url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/56/events","html_url":"https://github.com/hootlex/laravel-friendships/issues/56","id":180060926,"number":56,"title":"getPendingFriends","user":{"login":"nikolaynesov","id":17743574,"avatar_url":"https://avatars.githubusercontent.com/u/17743574?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolaynesov","html_url":"https://github.com/nikolaynesov","followers_url":"https://api.github.com/users/nikolaynesov/followers","following_url":"https://api.github.com/users/nikolaynesov/following{/other_user}","gists_url":"https://api.github.com/users/nikolaynesov/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolaynesov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolaynesov/subscriptions","organizations_url":"https://api.github.com/users/nikolaynesov/orgs","repos_url":"https://api.github.com/users/nikolaynesov/repos","events_url":"https://api.github.com/users/nikolaynesov/events{/privacy}","received_events_url":"https://api.github.com/users/nikolaynesov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-29T14:13:43Z","updated_at":"2016-09-29T21:54:51Z","closed_at":null,"body":"Hey,\r\n\r\nWe have already got getFriends() function to get Users with Friendship ACCEPTED status and other methods like getMutualFriends(), getFriendsOfFriends() . How about to introduce getPendingFriends to get Users (not friendships model like we do in getPendingFriendships()) ?\r\nI want to show a list of pendings friends with some user info that I need get from the User Model and a button to accept the friendship request with a clean and easy method? What do you think? Or maybe I missed something? "},"comment":{"url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/comments/250602370","html_url":"https://github.com/hootlex/laravel-friendships/issues/56#issuecomment-250602370","issue_url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/56","id":250602370,"user":{"login":"nikolaynesov","id":17743574,"avatar_url":"https://avatars.githubusercontent.com/u/17743574?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolaynesov","html_url":"https://github.com/nikolaynesov","followers_url":"https://api.github.com/users/nikolaynesov/followers","following_url":"https://api.github.com/users/nikolaynesov/following{/other_user}","gists_url":"https://api.github.com/users/nikolaynesov/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolaynesov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolaynesov/subscriptions","organizations_url":"https://api.github.com/users/nikolaynesov/orgs","repos_url":"https://api.github.com/users/nikolaynesov/repos","events_url":"https://api.github.com/users/nikolaynesov/events{/privacy}","received_events_url":"https://api.github.com/users/nikolaynesov/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T21:54:51Z","updated_at":"2016-09-29T21:54:51Z","body":"Another thing is what if I want to make and auto-complete ajax search by pending friends, declined friends, accepted friends or friends in some group? ))) It means we need a more flexible way to build queries. Should it look something like:\r\n```\r\n$user->friends()->accepted()->group('close_friends')\r\n$user->friends()->pending()->search('John S')\r\n```\r\n\r\n"}}
{"actor":{"display_login":"nikolaynesov"}}