*/ public function all(): Collection { return $this->userRepo->all(); } public function countUsers(): int { return $this->userRepo->count(); } /** * @return Collection */ public function allProfiles(): Collection { return $this->all()->map(fn($user) => $user->safe()); } /** * @return array */ public function currentReadableSchemas(): array { $roles = $this->authService->currentUserRoles(); return $this->channelService->schemasReadableByRoles($roles); } public function currentWritableSchemas(): array { $roles = $this->authService->currentUserRoles(); return $this->channelService->schemasWritableByRoles($roles); } }