/home/techb158/ileadtechnology.com/vendor/spatie/laravel-backup/src/Commands
NameSizeModeActions
BackupCommand.php22800644editdlrm
BaseCommand.php4570644editdlrm
CleanupCommand.php14530644editdlrm
ListCommand.php36300644editdlrm
MonitorCommand.php12490644editdlrm
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; } } }