public static function slug($text = '', $isCache = false): string
    {
        static $cache = [];

        if (!$isCache) {
            return Slug::filter($text);
        }

        if (!array_key_exists($text, $cache)) { // Not Arr::key() for performance
            $cache[$text] = Slug::filter($text);
        }

        return $cache[$text];
    }
public static function slug($text = '', $isCache = false): string
    {
        static $cache = [];

        if (!$isCache) {
            return Slug::filter($text);
        }

        if (!array_key_exists($text, $cache)) { // Not Arr::key() for performance
            $cache[$text] = Slug::filter($text);
        }

        return $cache[$text];
    }
public static function slug ( $ text = '' , $ isCache = false ) : string { static $ cache = [ ] ; if ( ! $ isCache ) { return Slug :: filter ( $ text ) ; } if ( ! array_key_exists ( $ text , $ cache ) ) { // Not Arr::key() for performance $ cache [ $ text ] = Slug :: filter ( $ text ) ; } return $ cache [ $ text ] ; }
Converts any accent characters to their equivalent normal characters

@param string $text
@param bool   $isCache
@return string
Converts any accent characters to their equivalent normal characters