/home/techb158/ileadtechnology.com/vendor/spatie/laravel-backup/src/Commands
Edit: /home/techb158/ileadtechnology.com/vendor/spatie/laravel-backup/src/Commands/CleanupCommand.php (1453B)
strategy = $strategy;
}
public function handle()
{
consoleOutput()->comment('Starting cleanup...');
$disableNotifications = $this->option('disable-notifications');
try {
$config = config('backup');
$backupDestinations = BackupDestinationFactory::createFromArray($config['backup']);
$cleanupJob = new CleanupJob($backupDestinations, $this->strategy, $disableNotifications);
$cleanupJob->run();
consoleOutput()->comment('Cleanup completed!');
} catch (Exception $exception) {
if (! $disableNotifications) {
event(new CleanupHasFailed($exception));
}
return 1;
}
}
}