We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65edf5a commit bda2e0cCopy full SHA for bda2e0c
src/Routing/Router.php
@@ -251,7 +251,9 @@ protected function addApiRoute($route)
251
$versions = array_get(last($this->groupStack), 'version', []);
252
253
foreach ($versions as $version) {
254
- $this->getApiRouteCollection($version)->add($route);
+ if ($collection = $this->getApiRouteCollection($version)) {
255
+ $collection->add($route);
256
+ }
257
}
258
259
return $route;
0 commit comments