You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me, that the order in which the models can accept a request has been reversed.
This issue is mostly to see whether I'm wrong in this or not...
// Grabbing the requests towards the currently authenticated user:$requests = Auth::user()->followRequests()->get();
// ..// getting the user that requested, irrelevant$user = User::findOrFail($a_request->id);
// what I expected to work:// Auth::user()->acceptFollowRequest($user);// what actually worked:$user->acceptFollowRequest(Auth::user());
My User model is set-up to be able to follow & be followed
useRennokki\Befriended\Traits\Follow;
useRennokki\Befriended\Contracts\Following;
classUserextendsAuthenticatableimplementsMustVerifyEmail, Following
{
useFollow;
The text was updated successfully, but these errors were encountered:
It seems to me, that the order in which the models can accept a request has been reversed.
This issue is mostly to see whether I'm wrong in this or not...
My User model is set-up to be able to
follow
&be followed
The text was updated successfully, but these errors were encountered: