public function displayRoutes()
    {
        $headers = ['Method', 'URI', 'Name', 'Action', 'Middleware', 'Map To'];
        $this->generateRoutes();
        $this->applyFilters();
        if (!$this->routes) {
            $this->warn('No routes found!');
            return false;
        }
        //change the reverse order if command contains reverse command
        $str = '';
        if ($this->option('reverse')) {
            rsort($this->routes);
            $str = '. Displayed in reverse order';
        }
        $this->info("Route found: " . count($this->routes) . $str);
        $this->table($headers, $this->routes);
    }
public function displayRoutes()
    {
        $headers = ['Method', 'URI', 'Name', 'Action', 'Middleware', 'Map To'];
        $this->generateRoutes();
        $this->applyFilters();
        if (!$this->routes) {
            $this->warn('No routes found!');
            return false;
        }
        //change the reverse order if command contains reverse command
        $str = '';
        if ($this->option('reverse')) {
            rsort($this->routes);
            $str = '. Displayed in reverse order';
        }
        $this->info("Route found: " . count($this->routes) . $str);
        $this->table($headers, $this->routes);
    }
public function displayRoutes ( ) { $ headers = [ 'Method' , 'URI' , 'Name' , 'Action' , 'Middleware' , 'Map To' ] ; $ this -> generateRoutes ( ) ; $ this -> applyFilters ( ) ; if ( ! $ this -> routes ) { $ this -> warn ( 'No routes found!' ) ; return false ; } //change the reverse order if command contains reverse command $ str = '' ; if ( $ this -> option ( 'reverse' ) ) { rsort ( $ this -> routes ) ; $ str = '. Displayed in reverse order' ; } $ this -> info ( "Route found: " . count ( $ this -> routes ) . $ str ) ; $ this -> table ( $ headers , $ this -> routes ) ; }
Display the routes in console
@return bool
Display the routes in console