The first thing you should do when starting any new Laravel app

Laravel provides a Model::shouldBeStrict() method that will throw an exception when any of the following happens: 1. When you attempt to lazy load relationships (preventing N 1 query issues) 2. Prevents Silently Discarding Attributes 3. Prevents Accessing Missing Attributes on your models It’s simple yet powerful and great way to keep your code in check as you build out a new project. ---------------------------------------------------------------------- JOIN OUR WEEKLY LARAVEL NEWSLETTER ----------------------------------------------------------------------
Back to Top