A new feature in Laravel 8.43 allows you to automatically detect the so-called “N+1 Queries” problem with lazy loading in Eloquent, and throw an exception when that happens.
Original Pull Request by Mohamed Said: https://github.com/laravel/framework/pull/37363
– – – – –
Support the channel by checking out our products:
– Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
– Enroll in my Laravel courses: https://laraveldaily.teachable.com
– Purchase my Livewire Kit: https://livewirekit.com
– Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter