diff --git a/src/DataCollector/IlluminateRouteCollector.php b/src/DataCollector/IlluminateRouteCollector.php index fa7b497c8..c9db589da 100644 --- a/src/DataCollector/IlluminateRouteCollector.php +++ b/src/DataCollector/IlluminateRouteCollector.php @@ -91,9 +91,7 @@ protected function getRouteInformation($route) */ protected function getMiddleware($route) { - $middleware = array_keys($route->middleware()); - - return implode(', ', $middleware); + return implode(', ', $route->middleware()); } /**