Is there a way to get data from two pivot tables in laravel eloquent
I’ve next database structure: friends: id, first_name, last_name, friends_activities: friend_id, user_id, type (enum), created_at, friends_reactions: friend_id, user_id, type (enum), And I need to count all friends_reactions and friends_activity together as e.g. engagements_count. So far I’ve created eloquent relationship in the…