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;
|
|
|
|
|
2024-01-07 15:23:41 +00:00
|
|
|
class Index extends Component
|
2023-08-29 12:36:17 +00:00
|
|
|
{
|
|
|
|
public ?Collection $servers = null;
|
|
|
|
|
2024-06-10 20:43:34 +00:00
|
|
|
public function mount()
|
|
|
|
{
|
2023-08-29 12:36:17 +00:00
|
|
|
$this->servers = Server::ownedByCurrentTeam()->get();
|
|
|
|
}
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2023-08-29 12:36:17 +00:00
|
|
|
public function render()
|
|
|
|
{
|
2024-01-07 15:23:41 +00:00
|
|
|
return view('livewire.server.index');
|
2023-08-29 12:36:17 +00:00
|
|
|
}
|
|
|
|
}
|