public function routes()
    {
        $routes = $this->app->make('routes.collection')->getAll();

        $headers = ['Condition', 'Filter', 'Action', 'Parameters', 'Pattern', 'Guid'];

        $dataset = array_map(function ($route) {
            return [
                $route->getCondition(),
                $route->getFilter(),
                $route->getAction(),
                $route->getParameters(),
                $route->getPattern(),
                $route->getGuid(),
            ];
        }, $routes);

        $this->table($headers, $dataset);
    }
public function routes()
    {
        $routes = $this->app->make('routes.collection')->getAll();

        $headers = ['Condition', 'Filter', 'Action', 'Parameters', 'Pattern', 'Guid'];

        $dataset = array_map(function ($route) {
            return [
                $route->getCondition(),
                $route->getFilter(),
                $route->getAction(),
                $route->getParameters(),
                $route->getPattern(),
                $route->getGuid(),
            ];
        }, $routes);

        $this->table($headers, $dataset);
    }
public function routes ( ) { $ routes = $ this -> app -> make ( 'routes.collection' ) -> getAll ( ) ; $ headers = [ 'Condition' , 'Filter' , 'Action' , 'Parameters' , 'Pattern' , 'Guid' ] ; $ dataset = array_map ( function ( $ route ) { return [ $ route -> getCondition ( ) , $ route -> getFilter ( ) , $ route -> getAction ( ) , $ route -> getParameters ( ) , $ route -> getPattern ( ) , $ route -> getGuid ( ) , ] ; } , $ routes ) ; $ this -> table ( $ headers , $ dataset ) ; }
Show registered routes.

## EXAMPLE

wp assely:show routes
Show registered routes .