1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-disable-lazy-loading-using-modelpreventlazyloading.md
2022-02-17 17:18:25 +01:00

581 B

title tweet_id thread_slug author_username images created_at slug
You can disable lazy loading using Model::preventLazyLoading() 1489620165201330177 weekly-thread-2022-05 mattkingshott
https://pbs.twimg.com/media/FKlnRQ_XwAUqAxB.jpg
2022-02-04T15:21:37+00:00 you-can-disable-lazy-loading-using-modelpreventlazyloading

🔥 #Laravel Tip: Protect your database from the dangers of lazy loading by disabling it in your Laravel app. You can also customise how violations are handled, which is perfect for models outside of your control e.g. within packages.