laravel-backup changes

This commit is contained in:
Nabeel Shahzad
2021-03-05 06:00:36 -05:00
parent c736a9b639
commit b13c4df338
2 changed files with 8 additions and 5 deletions

View File

@@ -31,8 +31,10 @@ class Kernel extends ConsoleKernel
$schedule->command(Hourly::class)->hourly();
// When spatie-backups runs
$schedule->command('backup:clean')->daily()->at('01:00');
$schedule->command('backup:run')->daily()->at('02:00');
if (config('backup.backup.enabled', false) === true) {
$schedule->command('backup:clean')->daily()->at('01:00');
$schedule->command('backup:run')->daily()->at('02:00');
}
// Update the last time the cron was run
/** @var CronService $cronSvc */