Skip to content

Commit

Permalink
add missing doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Trigary committed Mar 23, 2024
1 parent 552dcc9 commit b32a1f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Http/Livewire/ListUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Models\User;
use App\Utils\UserFilter;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Livewire\Component;
use Maatwebsite\Excel\Facades\Excel;

Expand Down Expand Up @@ -36,7 +37,10 @@ private function createFilteredQuery(): User|Builder
return $filter->getQuery();
}

public function getUsersProperty()
/**
* @return array|User[]|Collection the users that match the specified filters, so the users that should be listed
*/
public function getUsersProperty(): array|Collection
{
return $this->createFilteredQuery()
->with(['roles', 'workshops', 'educationalInformation', 'semesterStatuses'])
Expand Down

0 comments on commit b32a1f7

Please sign in to comment.