lasthourcloud/app/Http/Livewire/ForceUpgrade.php

16 lines
284 B
PHP
Raw Normal View History

2023-04-28 13:08:48 +00:00
<?php
namespace App\Http\Livewire;
2023-05-25 12:23:49 +00:00
use App\Jobs\InstanceAutoUpdateJob;
2023-04-28 13:08:48 +00:00
use Livewire\Component;
class ForceUpgrade extends Component
{
public function upgrade()
{
2023-05-25 12:23:49 +00:00
$this->emit('updateInitiated');
2023-05-25 13:47:27 +00:00
dispatch_sync(new InstanceAutoUpdateJob(force: true));
2023-04-28 13:08:48 +00:00
}
}