Laravel has a mechanism to catch the lazy loading, but let me show you one caveat on how it works, and how to PROPERLY enable it.
Links mentioned in the video:
- [Docs] Preventing Lazy Loading: #preventing-lazy-loading
- My other videos on the N 1 Query problem: @LaravelDaily/search?query=n+1
- My course “Testing in Laravel For Beginners“:
- - - - -
Support the channel by checking out my products:
- My Laravel courses:
- Filament examples:
- Livewire Kit Components:
- - - - -
Other places to follow:
- My weekly Laravel newsletter:
- My personal Twitter: