public function getRoute(string $routeKey, array $params = []): string
    {
        $this->checkRouteIsDefined($routeKey);

        return route(
            $this->getAttribute('routes')[$routeKey]['alias'],
            array_merge($this->getAttribute('routes')[$routeKey]['parameters'], $params)
        );
    }
public function getRoute(string $routeKey, array $params = []): string
    {
        $this->checkRouteIsDefined($routeKey);

        return route(
            $this->getAttribute('routes')[$routeKey]['alias'],
            array_merge($this->getAttribute('routes')[$routeKey]['parameters'], $params)
        );
    }
public function getRoute ( string $ routeKey , array $ params = [ ] ) : string { $ this -> checkRouteIsDefined ( $ routeKey ) ; return route ( $ this -> getAttribute ( 'routes' ) [ $ routeKey ] [ 'alias' ] , array_merge ( $ this -> getAttribute ( 'routes' ) [ $ routeKey ] [ 'parameters' ] , $ params ) ) ; }
Get the route from its key.

@param string $routeKey
@param array $params

@return string
Get the route from its key .