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.
php artisan api:routes
1 parent 31bf026 commit 25ebd2dCopy full SHA for 25ebd2d
src/Console/Command/Routes.php
@@ -98,6 +98,8 @@ protected function getRoutes()
98
foreach ($collection->getRoutes() as $route) {
99
$routes[] = $this->filterRoute([
100
'host' => $route->domain(),
101
+ 'domain' => $route->domain(),
102
+ 'middleware' => json_encode($route->middleware()),
103
'method' => implode('|', $route->methods()),
104
'uri' => $route->uri(),
105
'name' => $route->getName(),
src/Routing/Router.php
@@ -690,7 +690,7 @@ public function getRoutes($version = null)
690
}
691
692
693
- return is_null($version) ? $collections : $collections[$version];
+ return is_null($version) ? collect($collections) : $collections[$version];
694
695
696
/**
0 commit comments