mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
init
This commit is contained in:
24
app/Http/Livewire/ServerSettings/RebootServer.php
Normal file
24
app/Http/Livewire/ServerSettings/RebootServer.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\ServerSettings;
|
||||
|
||||
use App\Models\Server;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Livewire\Component;
|
||||
|
||||
class RebootServer extends Component
|
||||
{
|
||||
public Server $server;
|
||||
|
||||
public function reboot(): void
|
||||
{
|
||||
$this->server->reboot();
|
||||
|
||||
session()->flash('status', 'rebooting-server');
|
||||
}
|
||||
|
||||
public function render(): View
|
||||
{
|
||||
return view('livewire.server-settings.reboot-server');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user