lasthourcloud/app/Http/Livewire/Project/Database/BackupNow.php

19 lines
389 B
PHP
Raw Normal View History

2023-08-11 18:48:52 +00:00
<?php
namespace App\Http\Livewire\Project\Database;
use App\Jobs\DatabaseBackupJob;
use Livewire\Component;
class BackupNow extends Component
{
public $backup;
public function backup_now()
{
dispatch(new DatabaseBackupJob(
backup: $this->backup
));
2023-10-13 13:45:24 +00:00
$this->emit('success', 'Backup queued. It will be available in a few minutes.');
2023-08-11 18:48:52 +00:00
}
}