-
app/Services/RepoService.php
Open in GitHubclass RepoService { public function reposToCrawl(): Collection { return collect(config('repos.repos')) ->flatMap(function (array $repoNames, string $owner): array { return collect($repoNames)->map(function (string $repoName) use ($owner): array { return [ 'owner' => $owner, 'name' => $repoName, ]; })->all(); }); } }