Skip to content

Commit

Permalink
Fix route middlewares list
Browse files Browse the repository at this point in the history
  • Loading branch information
kamui545 committed Jan 19, 2017
1 parent 2f59ddf commit 18d886b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DataCollector/IlluminateRouteCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ protected function getRouteInformation($route)
*/
protected function getMiddleware($route)
{
$middleware = array_keys($route->middleware());

return implode(', ', $middleware);
return implode(', ', $route->middleware());
}

/**
Expand Down

0 comments on commit 18d886b

Please sign in to comment.