By @mratiebatie · 2021-09-07 12:03
By @mratiebatie · 2021-09-13 12:01
Thanks for your answer. I've considered this as well but since it's quite some data it would slow down page load. Also, some eager loading queries have a extra scope on a date field which I excluded for brevity.
A couple of days ago I came up with the idea to start using ViewModels more. I think this is the best place to eager load extra data for a specific page. Thanks though!
By @mratiebatie · 2021-09-13 12:02
For anyone else dealing with big apps. You can find more info about ViewModels here: https://stitcher.io/blog/laravel-view-models