Support the ongoing development of Laravel.io →
rabbitdan

rabbitdan

Joined 4 Oct 2016

Statistics

Threads 1
Replies 2
Solutions 1
Articles 0

Issues with belongsToMany() only returning data for one column on pivot table.

So I'm kind of following the Laracasts Many To Many tutorial in Laravel5 Fundamentals and have the M...

0 Likes
2 Replies
Solved
replied 10 years ago

Issues with belongsToMany() only returning data for one column on pivot table.

Dilaz pointed out on livechat that image doesn't have an id before being saved. Obvious really.

0 Likes
Solved
replied 10 years ago

Issues with belongsToMany() only returning data for one column on pivot table.

And here's the error message: Whoops, looks like something went wrong. 2/2 QueryException in Connect...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.