src/Router.php
protected function buildNameIndex() : void
    {
        foreach ($this->routes as $key => $route) {
            if (! is_null($route->getName())) {
                unset($this->routes[$key]);
                $this->namedRoutes[$route->getName()] = $route;
            }
        }
    }
protected function buildNameIndex() : void
    {
        foreach ($this->routes as $key => $route) {
            if (! is_null($route->getName())) {
                unset($this->routes[$key]);
                $this->namedRoutes[$route->getName()] = $route;
            }
        }
    }
protected function buildNameIndex ( ) : void { foreach ( $ this -> routes as $ key => $ route ) { if ( ! is_null ( $ route -> getName ( ) ) ) { unset ( $ this -> routes [ $ key ] ) ; $ this -> namedRoutes [ $ route -> getName ( ) ] = $ route ; } } }
Build an index of named routes.

@return void
Build an index of named routes .