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');
|
|
|
|
}
|
|
|
|
}
|