From 51563549481cd4d3fdd6e60f55a8e4bfdb84382e Mon Sep 17 00:00:00 2001 From: Sohel Amin Date: Wed, 27 Mar 2019 00:30:58 +0600 Subject: [PATCH] Fix column position --- src/RoutesCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RoutesCommand.php b/src/RoutesCommand.php index d31047f..5ac96a1 100644 --- a/src/RoutesCommand.php +++ b/src/RoutesCommand.php @@ -61,7 +61,7 @@ protected function getRoutes() foreach ($routeCollection as $route) { $controller = $this->getController($route['action']); // Show class name without namesapce - if ($this->option('compact')) + if ($this->option('compact') && $controller !== 'None') $controller = substr($controller, strrpos($controller, '\\') + 1); $rows[] = [ @@ -174,14 +174,14 @@ protected function getHeaders() */ protected function getColumns() { - $availableColumns = array_map('strtolower', $this->headers); + $availableColumns = array_map('lcfirst', $this->headers); if ($this->option('compact')) { return array_intersect($availableColumns, $this->compactColumns); } if ($columns = $this->option('columns')) { - return array_intersect($availableColumns, array_map('strtolower', $columns)); + return array_intersect($availableColumns, array_map('lcfirst', $columns)); } return $availableColumns;