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
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community