lasthourcloud/app/Livewire/Server/All.php

21 lines
389 B
PHP
Raw Normal View History

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