From e0cf00fd1319733666d6c9c1e24468c66f6f58c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Tue, 13 Feb 2018 18:38:02 +0100 Subject: [PATCH] normalize actions on route:list artisan (#23148) remove leading slash --- src/Illuminate/Foundation/Console/RouteListCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/RouteListCommand.php b/src/Illuminate/Foundation/Console/RouteListCommand.php index b5cbb335bf1f..97e06d2e70a1 100644 --- a/src/Illuminate/Foundation/Console/RouteListCommand.php +++ b/src/Illuminate/Foundation/Console/RouteListCommand.php @@ -110,7 +110,7 @@ protected function getRouteInformation(Route $route) 'method' => implode('|', $route->methods()), 'uri' => $route->uri(), 'name' => $route->getName(), - 'action' => $route->getActionName(), + 'action' => ltrim($route->getActionName(), '\\'), 'middleware' => $this->getMiddleware($route), ]); }