Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0
->withPivot('another_column');

Paste your code to http://laravel.io/bin so we can see it.

Last updated 2 years ago.
0

That was what I was missing! After looking up documentation on withPivot, I tried it and implemented it

For Reference: http://laravel.com/docs/eloquent#working-with-pivot-tables

Last updated 2 years ago.
0

@mrgwilliam

you can mark the question as closed so it can be identified as closed in the forum overview ;-)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.