lasthourcloud/app/Http/Livewire/ForceUpgrade.php

16 lines
279 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 19:23:03 +00:00
dispatch(new InstanceAutoUpdateJob(force: true));
2023-04-28 13:08:48 +00:00
}
}