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
The profile relationship is only run once and therefore the different arguments given to the custom query clause is not taken into account, only the last query get the right args.
It seems a bit to hard to fix since it is not easily possible to alias eloquent relationships.
Unfortunately something like this is not possible. This would have made it a simplier fix User::with('relationship', 'relationship AS other')->get();