mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Disable Lazy Loading in Development
This commit is contained in:
parent
0d043ff880
commit
319e5e65e9
@ -40,6 +40,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
// Allow mass assignment for all models. Be careful!
|
||||
Model::unguard();
|
||||
|
||||
// Disable lazy loading in non-production environments.
|
||||
Model::preventLazyLoading(! app()->isProduction());
|
||||
|
||||
// Register model observers.
|
||||
$this->registerObservers();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user