Support the ongoing development of Laravel.io →
posted 7 years ago
Database
Last updated 2 years ago.
0

Take a look at relationships (specifically One to Many)

https://laravel.com/docs/5.3/eloquent-relationships#one-to-many

In addition, you would probably want to eager load it in this instance:

https://laravel.com/docs/5.3/eloquent-relationships#eager-loading

0

elite123 said:

Take a look at relationships (specifically One to Many)

https://laravel.com/docs/5.3/eloquent-relationships#one-to-many

In addition, you would probably want to eager load it in this instance:

https://laravel.com/docs/5.3/eloquent-relationships#eager-loading

Hi Dear

i am new in laravel and i dont understand Eloquent very well and i did not make relation in database like done in migration

i want to make it in query level please

any idea about this issue

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.