public function getRouteName($route)
    {
        if (!$this->routePath) {
            // Grab route_prefix config first. If it's not set,
            // grab the resources, and replace `\` with `.`, and
            // transform it all to lowercase.
            $this->routePath = $this->getConfig('route_prefix')
                ?: str_replace('\\', '.', strtolower($this->getConfig('resources')));
        }
        return "{$this->routePath}.v{$this->current}" . str_after($route, $this->routePath);
    }
public function getRouteName($route)
    {
        if (!$this->routePath) {
            // Grab route_prefix config first. If it's not set,
            // grab the resources, and replace `\` with `.`, and
            // transform it all to lowercase.
            $this->routePath = $this->getConfig('route_prefix')
                ?: str_replace('\\', '.', strtolower($this->getConfig('resources')));
        }
        return "{$this->routePath}.v{$this->current}" . str_after($route, $this->routePath);
    }
public function getRouteName ( $ route ) { if ( ! $ this -> routePath ) { // Grab route_prefix config first. If it's not set, // grab the resources, and replace `\` with `.`, and // transform it all to lowercase. $ this -> routePath = $ this -> getConfig ( 'route_prefix' ) ? : str_replace ( '\\' , '.' , strtolower ( $ this -> getConfig ( 'resources' ) ) ) ; } return "{$this->routePath}.v{$this->current}" . str_after ( $ route , $ this -> routePath ) ; }
Returns the name of the versioned route.

@param string $route
@return string
Returns the name of the versioned route .