coolify/app/Livewire/Server/Index.php

21 lines
393 B
PHP
Raw Normal View History

2023-08-29 14:36:17 +02:00
<?php
2023-12-07 19:06:32 +01:00
namespace App\Livewire\Server;
2023-08-29 14:36:17 +02:00
use App\Models\Server;
use Illuminate\Database\Eloquent\Collection;
use Livewire\Component;
2024-01-07 16:23:41 +01:00
class Index extends Component
2023-08-29 14:36:17 +02:00
{
public ?Collection $servers = null;
public function mount () {
$this->servers = Server::ownedByCurrentTeam()->get();
}
public function render()
{
2024-01-07 16:23:41 +01:00
return view('livewire.server.index');
2023-08-29 14:36:17 +02:00
}
}