public function pathFor($name, $data = [], $queryParams = [])
    {
        // The `pathfor('showPage', {'url': 'home'})` route should be an alias for `pathFor('home')`
        if ($name === 'showPage' && isset($data['url']) && $data['url'] === 'home') {
            $name = 'home';
            unset($data['url']);
        }

        return $this->container->router->pathFor($name, $data, $queryParams);
    }
public function pathFor($name, $data = [], $queryParams = [])
    {
        // The `pathfor('showPage', {'url': 'home'})` route should be an alias for `pathFor('home')`
        if ($name === 'showPage' && isset($data['url']) && $data['url'] === 'home') {
            $name = 'home';
            unset($data['url']);
        }

        return $this->container->router->pathFor($name, $data, $queryParams);
    }
public function pathFor ( $ name , $ data = [ ] , $ queryParams = [ ] ) { // The `pathfor('showPage', {'url': 'home'})` route should be an alias for `pathFor('home')` if ( $ name === 'showPage' && isset ( $ data [ 'url' ] ) && $ data [ 'url' ] === 'home' ) { $ name = 'home' ; unset ( $ data [ 'url' ] ) ; } return $ this -> container -> router -> pathFor ( $ name , $ data , $ queryParams ) ; }
Get Path for Named Route

@param string $name Name of the route
@param array $data Associative array to assign to route segments
@param array $queryParams Query string parameters
@return string The desired route path without the domain, but does include the basePath
Get Path for Named Route