lasthourcloud/app/Http/Livewire/Server/Proxy/Modal.php

19 lines
343 B
PHP
Raw Normal View History

2023-09-14 15:10:37 +00:00
<?php
namespace App\Http\Livewire\Server\Proxy;
use App\Models\Server;
use Livewire\Component;
class Modal extends Component
{
public Server $server;
public function proxyStatusUpdated()
{
2023-09-25 07:17:42 +00:00
$this->server->proxy->set('status', 'running');
$this->server->save();
2023-09-14 15:10:37 +00:00
$this->emit('proxyStatusUpdated');
}
}