Files
coolify/app/Livewire/Server/Proxy/Logs.php
Andras Bacsai 16c0cd10d8 rector: arrrrr
2025-01-07 14:52:08 +01:00

35 lines
730 B
PHP

<?php
namespace App\Livewire\Server\Proxy;
use App\Models\Server;
use Livewire\Component;
use Throwable;
class Logs extends Component
{
public ?Server $server = null;
public $parameters = [];
public function mount()
{
$this->parameters = get_route_parameters();
try {
$this->server = Server::ownedByCurrentTeam()->whereUuid(request()->server_uuid)->first();
if (is_null($this->server)) {
return redirect()->route('server.index');
}
} catch (Throwable $e) {
return handleError($e, $this);
}
return null;
}
public function render()
{
return view('livewire.server.proxy.logs');
}
}