laravel-friendships
laravel-friendships copied to clipboard
Canceling my Friendship request
Hallo, first of all thank you for your niche package. What I missed is a function so I can cancel my requests myself. So like
if($me->hasSentFriendRequestTo($recipient)){ $me->cancelSentFriendrequestTo($recipient); }
thanks
Great idea @mughalles. Can you submit a PR? 🙂
what about...
if ($me->hasSentFriendRequestTo($recipient) {
$recipient->denyFriendRequest($me);
}
Otherwise, you'd have to get into adding a new Status.
Just a thought :)
Yep that's great, but I think we should implement a dedicated function for cancelling user's request, so if the user of this library needs to fire off custom events after cancelling request, he can distinguish whether a user has cancelled his request or the recipient really did deny the friend request. But this solution is nice tho.
Greetings, thanks for your package, I would like to know if there is already a solution to "cancel a friend request"?