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

23 lines
426 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::ownedByCurrentTeam()->get();
}
public function render()
{
return view('livewire.shared-variables.environment.index');
}
}