-
app/Models/DocumentationVersion.php
Open in GitHubclass DocumentationVersion extends Model { // public function getRows(): array { return collect(config('documentation')) ->map(function (array $version, int $versionNumber): array { return [ 'id' => $versionNumber, 'name' => "v{$versionNumber}.x", 'slug' => "{$versionNumber}.x", ]; }) ->values() ->toArray(); } // }