fix: enable database destructive command prohibition in production environments

This commit is contained in:
Paulo Castellano 2026-05-03 19:56:36 -03:00
parent 28ea0c8222
commit 2cc0aed846

View file

@ -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)