From 6b0f78aa784da842fcd575e1099f3e97ffcda68d Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Thu, 31 Oct 2024 12:36:43 +0100 Subject: [PATCH] Add configureModels method to configureModels in AppServiceProvider --- app/Providers/AppServiceProvider.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index e94472e..3597df5 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -34,13 +34,17 @@ protected function translatableComponents(): void private function configureCommands(): void { DB::prohibitDestructiveCommands($this->app->isProduction()); + } + private function configureModels(): void + { Model::shouldBeStrict(! app()->isProduction()); } public function boot(): void { $this->configureCommands(); + $this->configureModels(); $this->translatableComponents(); } }