From 18d886b544aa2abb0f4c796733622bc55dd7a07a Mon Sep 17 00:00:00 2001 From: Emmanuel Maggion Date: Thu, 19 Jan 2017 15:34:58 +0800 Subject: [PATCH] Fix route middlewares list --- src/DataCollector/IlluminateRouteCollector.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()); } /**