coolify/app/Livewire/SharedVariables/Environment/Index.php

22 lines
425 B
PHP

<?php
namespace App\Livewire\SharedVariables\Environment;
use App\Models\Project;
use Illuminate\Support\Collection;
use Livewire\Component;
class Index extends Component
{
public Collection $projects;
public function mount()
{
$this->projects = Project::ownedByCurrentTeamCached();
}
public function render()
{
return view('livewire.shared-variables.environment.index');
}
}