Pivot table only return user_id & project_id

Posted 7 months ago by GTHell

I have user that can has many projects and vice versa. I have table call user_project with a few column but when query using eloquent $user->projects->find(1)->pivot I only get user_id and project_id. Where is the rest of the column?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.