lasthourcloud/app/Http/Livewire/Server/Proxy/Modal.php
2023-09-25 09:17:42 +02:00

19 lines
343 B
PHP

<?php
namespace App\Http\Livewire\Server\Proxy;
use App\Models\Server;
use Livewire\Component;
class Modal extends Component
{
public Server $server;
public function proxyStatusUpdated()
{
$this->server->proxy->set('status', 'running');
$this->server->save();
$this->emit('proxyStatusUpdated');
}
}