lasthourcloud/app/Http/Livewire/ForceUpgrade.php
Andras Bacsai b097842d01 roles
2023-06-09 15:55:21 +02:00

21 lines
434 B
PHP

<?php
namespace App\Http\Livewire;
use App\Jobs\InstanceAutoUpdateJob;
use Livewire\Component;
class ForceUpgrade extends Component
{
public bool $visible = false;
public function upgrade()
{
try {
$this->visible = true;
dispatch(new InstanceAutoUpdateJob(force: true));
} catch (\Exception $e) {
return general_error_handler(err: $e, that: $this);
}
}
}