diff --git a/app/Console/Commands/PerformDatabaseBackupCommand.php b/app/Console/Commands/PerformDatabaseBackupCommand.php index 8c78c2831..83675e45e 100644 --- a/app/Console/Commands/PerformDatabaseBackupCommand.php +++ b/app/Console/Commands/PerformDatabaseBackupCommand.php @@ -34,7 +34,7 @@ public function handle(): void $glob = File::glob(database_path('backups/*.sql')); - collect($glob)->sort()->reverse()->slice(20)->each( + collect($glob)->sort()->reverse()->slice(4)->each( fn (string $backup): bool => File::delete($backup), ); }