src/Command/LumenRouteList.php
public function fire()
    {
        global $app;
        
        $routeCollection = $app->getRoutes();
        $rows = array();
        foreach ($routeCollection as $route) {
            $rows[] = [
                'verb' => $route['method'],
                'path' => $route['uri'],
                'namedRoute' => $this->getNamedRoute($route['action']),
                'controller' => $this->getController($route['action']),
                'action' => $this->getAction($route['action']),
                'middleware' => $this->getMiddleware($route['action'])
            ];
        }
        
        $headers = array(
            'Verb',
            'Path',
            'NamedRoute',
            'Controller',
            'Action',
            'Middleware'
        );
        $this->table($headers, $rows);
    }
public function fire()
    {
        global $app;
        
        $routeCollection = $app->getRoutes();
        $rows = array();
        foreach ($routeCollection as $route) {
            $rows[] = [
                'verb' => $route['method'],
                'path' => $route['uri'],
                'namedRoute' => $this->getNamedRoute($route['action']),
                'controller' => $this->getController($route['action']),
                'action' => $this->getAction($route['action']),
                'middleware' => $this->getMiddleware($route['action'])
            ];
        }
        
        $headers = array(
            'Verb',
            'Path',
            'NamedRoute',
            'Controller',
            'Action',
            'Middleware'
        );
        $this->table($headers, $rows);
    }
Execute the console command.

@return void