Support the ongoing development of Laravel.io →
Laravel Blade Eloquent

hashimabbasjaffery liked this thread

1

Your mentor is correct belong to is not one to many

One category HasMany products -> has many relation

Many products BelongTo category -> the reverse of has many relation ( belong to)

Last updated by @hossamj2004 2 months 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.