Files
ABSDEV/Modules/Enterprise/Console/BackupPruneCommand.php
T
2026-07-24 14:59:44 +01:00

21 lines
484 B
PHP

<?php
namespace Modules\Enterprise\Console;
use Illuminate\Console\Command;
use Modules\Enterprise\Services\BackupService;
final class BackupPruneCommand extends Command
{
protected $signature = 'enterprise:backup-prune';
protected $description = 'Delete backups older than the configured retention period.';
public function handle(BackupService $service): int
{
$this->info($service->prune().' backup(s) pruned.');
return self::SUCCESS;
}
}