public function slug($string, $replacement = '-', $lowercase = true)
    {
        return $this->proxy(__FUNCTION__, [$string, $replacement, $lowercase]);
    }
public function slug($string, $replacement = '-', $lowercase = true)
    {
        return $this->proxy(__FUNCTION__, [$string, $replacement, $lowercase]);
    }
public function slug ( $ string , $ replacement = '-' , $ lowercase = true ) { return $ this -> proxy ( __FUNCTION__ , [ $ string , $ replacement , $ lowercase ] ) ; }
Returns a string with all spaces converted to given replacement,
non word characters removed and the rest of characters transliterated.

If intl extension isn't available uses fallback that converts latin characters only
and removes the rest. You may customize characters map via $transliteration property
of the helper.

@param string $string An arbitrary string to convert
@param string $replacement The replacement to use for spaces
@param bool $lowercase whether to return the string in lowercase or not. Defaults to `true`.
@return string The converted string.
@see \Reaction\Helpers\Inflector::slug()
Returns a string with all spaces converted to given replacement non word characters removed and the rest of characters transliterated .