Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I mention belongs to many relation for the same table #2091

Unanswered
muthukumaran-m asked this question in General
Discussion options

I have User table and connections table. I want to make a relationship which will return all the connections for that user.

connections table:

image

The Auth::id() Maybe either in user_id or requested_user_id I want to get the connected user with the authorized user.

I have writen this but it gives no records. Am I missing something?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2091 on September 04, 2020 20:08.

AltStyle によって変換されたページ (->オリジナル) /