lasthourcloud/app/Livewire/Server/Index.php
2024-06-10 20:43:34 +00:00

23 lines
397 B
PHP

<?php
namespace App\Livewire\Server;
use App\Models\Server;
use Illuminate\Database\Eloquent\Collection;
use Livewire\Component;
class Index extends Component
{
public ?Collection $servers = null;
public function mount()
{
$this->servers = Server::ownedByCurrentTeam()->get();
}
public function render()
{
return view('livewire.server.index');
}
}