Support the ongoing development of →
Database Eloquent Laravel
Last updated 1 year ago.

The relationship on your Product model has to be a HasOne relation and not a HasMany relation. I think that fixes your relationship bug.


Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.