Skip to content

Commit 7ebd211

Browse files
committed
fix route list for excluded middleware
1 parent ec318a0 commit 7ebd211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/RouteListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected function displayRoutes(array $routes)
170170
*/
171171
protected function getMiddleware($route)
172172
{
173-
return collect($route->gatherMiddleware())->map(function ($middleware) {
173+
return collect($this->router->gatherRouteMiddleware($route))->map(function ($middleware) {
174174
return $middleware instanceof Closure ? 'Closure' : $middleware;
175175
})->implode(',');
176176
}

0 commit comments

Comments
 (0)