Laravel Eloquent Inner Join on Self Referencing Table
问题 I'm trying to inner join a users table to itself using an eloquent model . I've looked everywhere but can't seem to find a solution to this without creating two queries which is what I am currently doing. A users table has a many to many relationship itself through the pivot table friends I tried and failed inner joining Users::class to itself. The best I can get at an inner join is by running two queries and seeing if there is an overlap. Thus one person has reached out to the other and vice