-
app/Services/GitHub/GitHubApi.php
Open in GitHubclass GitHubApi { public function fetchPublicRepositories(string $userName): Collection { $repos = $this->fetchAllResults('organization', 'repositories', [$userName]); return collect($repos)->filter(function ($repo) { return $repo['private'] === false; }); } // }