coolify/app/Livewire/Terminal/Index.php

22 lines
335 B
PHP
Raw Normal View History

2024-01-07 15:23:41 +00:00
<?php
namespace App\Livewire\Terminal;
2024-01-07 15:23:41 +00:00
use App\Models\Server;
use Livewire\Component;
class Index extends Component
{
public $servers = [];
2024-06-10 20:43:34 +00:00
public function mount()
{
2024-01-07 15:23:41 +00:00
$this->servers = Server::isReachable()->get();
}
2024-06-10 20:43:34 +00:00
2024-01-07 15:23:41 +00:00
public function render()
{
return view('livewire.terminal.index');
2024-01-07 15:23:41 +00:00
}
}