Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
624 B

<?php
namespace App\Domains\System\Actions\Backup;
use App\Domains\System\Models\Backup;
use Exception;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Storage;
class ArchiveSystemBackup
{
public function __construct(protected SyncBackupCatalog $syncBackupCatalog) {}
/**
* @throws Exception
*/
public function execute(): void
{
$artisanResult = Artisan::call('backup:run', []);
if ($artisanResult !== 0) {
throw new Exception(__('domains/system/messages.backup.backup_error'));
}
$this->syncBackupCatalog->execute();
}
}