Skip to content

Commit

Permalink
Merge pull request #591 from kamui545/fix-route-middlewares
Browse files Browse the repository at this point in the history
Fix route middlewares list
  • Loading branch information
barryvdh authored Jan 19, 2017
2 parents 3504fff + 18d886b commit 24e4f02
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 24e4f02

Please sign in to comment.