Laravel Eloquent: Deeper Relationships with One Query

Laravel Eloquent: Deeper Relationships with One Query

150.694 Lượt nghe
Laravel Eloquent: Deeper Relationships with One Query
If you work with a project that has multiple levels of hasMany relationships, you can use hasManyThrough instead, or one of a few packages I will show in this video. Official docs on HasManyThrough: https://laravel.com/docs/8.x/eloquent-relationships#has-many-through Packages by Jonas Staudenmeir: https://github.com/staudenmeir My course "Eloquent: Expert Level": https://laraveldaily.com/course/eloquent-the-expert-level?mtm_campaign=youtube-deeper-relationships-20210710 My course "Better Eloquent Performance": https://laraveldaily.com/course/eloquent-performance?mtm_campaign=youtube-deeper-relationships-20210710 - - - - - Support the channel by checking out my products: - My Laravel courses: https://laraveldaily.com/courses?mtm_campaign=youtube-deeper-relationships-20210710 - Laravel QuickAdminPanel: https://quickadminpanel.com - Livewire Kit Components: https://livewirekit.com - - - - - Other places to follow: - My weekly Laravel newsletter: https://us11.campaign-archive.com/home/?u=a459401212599a54203d036ee&id=91c1337873 - My personal Twitter: https://twitter.com/povilaskorop