lasthourcloud/app/Livewire/SharedVariables/Project/Index.php

23 lines
418 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Livewire\SharedVariables\Project;
use App\Models\Project;
use Illuminate\Support\Collection;
use Livewire\Component;
class Index extends Component
{
public Collection $projects;
2024-06-10 20:43:34 +00:00
public function mount()
{
$this->projects = Project::ownedByCurrentTeam()->get();
}
2024-06-10 20:43:34 +00:00
public function render()
{
return view('livewire.shared-variables.project.index');
}
}