TIP 31 / 73

Disable Lazy Loading When Running Your Tests.

If you don't want to prevent lazy loading when running your tests you can disable it

php
Model::preventLazyLoading(!$this->app->isProduction() && !$this->app->runningUnitTests());