lasthourcloud/app/Http/Livewire/Server/Proxy.php
Joao Patricio 7fe50a9a1f wip
2023-05-03 09:27:44 +01:00

33 lines
612 B
PHP

<?php
namespace App\Http\Livewire\Server;
use App\Actions\Proxy\InstallProxy;
use App\Enums\ActivityTypes;
use App\Models\Server;
use Livewire\Component;
class Proxy extends Component
{
public Server $server;
protected string $selectedProxy = '';
public function mount(Server $server)
{
$this->server = $server;
}
public function runInstallProxy()
{
$activity = resolve(InstallProxy::class)($this->server);
$this->emit('newMonitorActivity', $activity->id);
}
public function render()
{
return view('livewire.server.proxy');
}
}