public function generateRoutes()
    {
        $routes = property_exists(app(), 'router')? app()->router->getRoutes() : app()->getRoutes();
        foreach ($routes as $route) {
            array_push($this->routes, [
                'method' => $route['method'],
                'uri' => $route['uri'],
                'name' => $this->getRouteName($route),
                'action' => $this->getRouteAction($route),
                'middleware' => $this->getRouteMiddleware($route),
                'map' => $this->getRouteMapTo($route)
            ]);
        }
    }
public function generateRoutes()
    {
        $routes = property_exists(app(), 'router')? app()->router->getRoutes() : app()->getRoutes();
        foreach ($routes as $route) {
            array_push($this->routes, [
                'method' => $route['method'],
                'uri' => $route['uri'],
                'name' => $this->getRouteName($route),
                'action' => $this->getRouteAction($route),
                'middleware' => $this->getRouteMiddleware($route),
                'map' => $this->getRouteMapTo($route)
            ]);
        }
    }
public function generateRoutes ( ) { $ routes = property_exists ( app ( ) , 'router' ) ? app ( ) -> router -> getRoutes ( ) : app ( ) -> getRoutes ( ) ; foreach ( $ routes as $ route ) { array_push ( $ this -> routes , [ 'method' => $ route [ 'method' ] , 'uri' => $ route [ 'uri' ] , 'name' => $ this -> getRouteName ( $ route ) , 'action' => $ this -> getRouteAction ( $ route ) , 'middleware' => $ this -> getRouteMiddleware ( $ route ) , 'map' => $ this -> getRouteMapTo ( $ route ) ] ) ; } }
Generate the formatted routes array
@return bool
Generate the formatted routes array