public function getResourceWildcard($value)
    {
        if (isset($this->parameters[$value])) {
            $value = $this->parameters[$value];
        } elseif (isset(static::$parameterMap[$value])) {
            $value = static::$parameterMap[$value];
        } elseif ($this->parameters === 'singular' || static::$singularParameters) {
            $value = Str::singular($value);
        }

        return str_replace('-', '_', $value);
    }
public function getResourceWildcard($value)
    {
        if (isset($this->parameters[$value])) {
            $value = $this->parameters[$value];
        } elseif (isset(static::$parameterMap[$value])) {
            $value = static::$parameterMap[$value];
        } elseif ($this->parameters === 'singular' || static::$singularParameters) {
            $value = Str::singular($value);
        }

        return str_replace('-', '_', $value);
    }
public function getResourceWildcard ( $ value ) { if ( isset ( $ this -> parameters [ $ value ] ) ) { $ value = $ this -> parameters [ $ value ] ; } elseif ( isset ( static :: $ parameterMap [ $ value ] ) ) { $ value = static :: $ parameterMap [ $ value ] ; } elseif ( $ this -> parameters === 'singular' || static :: $ singularParameters ) { $ value = Str :: singular ( $ value ) ; } return str_replace ( '-' , '_' , $ value ) ; }
Format a resource parameter for usage.

@param  string  $value
@return string
Format a resource parameter for usage .