From 2cc0aed846d21ba2b9ecb53445a07485fb3169c8 Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Sun, 3 May 2026 19:56:36 -0300 Subject: [PATCH] fix: enable database destructive command prohibition in production environments --- app/Providers/AppServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index a90d5166..c9cd9283 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -245,9 +245,9 @@ protected function configureDefaults(): void JsonResource::withoutWrapping(); Model::shouldBeStrict(! $this->app->isProduction()); - // DB::prohibitDestructiveCommands( - // app()->isProduction(), - // ); + DB::prohibitDestructiveCommands( + app()->isProduction(), + ); Password::defaults(fn (): ?Password => app()->isProduction() ? Password::min(12)