Skip to content

Commit f5e2697

Browse files
authored
[7.x] Use new line for route:list middleware (#32993)
With [this change](7ebd211), routes groups are now displayed using all middleware class names, instead of say `web`. Because of this, the Middleware column is massive for routes that use `web`. I recommend changing the join to new lines, so middleware is listed just like event listeners.
1 parent afdedc4 commit f5e2697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/RouteListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function getMiddleware($route)
172172
{
173173
return collect($this->router->gatherRouteMiddleware($route))->map(function ($middleware) {
174174
return $middleware instanceof Closure ? 'Closure' : $middleware;
175-
})->implode(',');
175+
})->implode("\n");
176176
}
177177

178178
/**

0 commit comments

Comments
 (0)