Skip to content

Commit

Permalink
Merge pull request #42 from CodeWithDennis/move-strict-to-private-fun…
Browse files Browse the repository at this point in the history
…ction

Add configureModels method to configureModels in AppServiceProvider
  • Loading branch information
CodeWithDennis authored Oct 31, 2024
2 parents 23b0630 + 6b0f78a commit 0070cbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 0070cbc

Please sign in to comment.