protected function getParamReplacement(string $key, array $params): string
    {
        return config()['app']['pathRegexMap'][$params[2][$key]]
            ?? '(' . ($params[2][$key] ?: $params[1][$key]) . ')';
    }
protected function getParamReplacement(string $key, array $params): string
    {
        return config()['app']['pathRegexMap'][$params[2][$key]]
            ?? '(' . ($params[2][$key] ?: $params[1][$key]) . ')';
    }
protected function getParamReplacement ( string $ key , array $ params ) : string { return config ( ) [ 'app' ] [ 'pathRegexMap' ] [ $ params [ 2 ] [ $ key ] ] ?? '(' . ( $ params [ 2 ] [ $ key ] ? : $ params [ 1 ] [ $ key ] ) . ')' ; }
Get a param's replacement.

@param string $key    The key
@param array  $params The params

@return string
Get a param s replacement .