protected function parseRoutes(RouteCollection $routes, $filter, $namespace)
    {
        $this->guardAgainstZeroRoutes($routes);

        $results = [];

        foreach ($routes as $route) {
            $results[] = $this->getRouteInformation($route, $filter, $namespace);
        }

        return array_values(array_filter($results));
    }
protected function parseRoutes(RouteCollection $routes, $filter, $namespace)
    {
        $this->guardAgainstZeroRoutes($routes);

        $results = [];

        foreach ($routes as $route) {
            $results[] = $this->getRouteInformation($route, $filter, $namespace);
        }

        return array_values(array_filter($results));
    }
protected function parseRoutes ( RouteCollection $ routes , $ filter , $ namespace ) { $ this -> guardAgainstZeroRoutes ( $ routes ) ; $ results = [ ] ; foreach ( $ routes as $ route ) { $ results [ ] = $ this -> getRouteInformation ( $ route , $ filter , $ namespace ) ; } return array_values ( array_filter ( $ results ) ) ; }
Parse the routes into a jsonable output.

@param RouteCollection $routes
@param string $filter
@param string $namespace

@return array
@throws ZeroRoutesException
Parse the routes into a jsonable output .