Skip to content

Commit

Permalink
Update CommandsServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GIGABAIT93 committed Feb 9, 2023
1 parent ae5d6d3 commit db60bbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/CommandsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public function boot()

$this->publishes([__DIR__ . '/../config/wemx-backup.php' => config_path('wemx-backup.php')], 'wemx-backup');

if (config('wemx-backup.autobackup')) {
$this->app->booted(function () {
$schedule = app(Schedule::class);
$schedule->command('backup --action=create --type=all')->cron(config('wemx-backup.autobackup_cron'));
// if (config('wemx-backup.autobackup')) {
// $this->app->booted(function () {
// $schedule = app(Schedule::class);
// $schedule->command('backup --action=create --type=all')->cron(config('wemx-backup.autobackup_cron'));

});
}
// });
// }
}

/**
Expand Down

0 comments on commit db60bbd

Please sign in to comment.