public static function taggify($tag)
    {
        $filters = config('lecturize.tags.filters', []);
        $tag = trim(str_replace(array_keys($filters), array_values($filters), $tag));

        $patterns = config('lecturize.tags.patterns', ['/\(([^)]+)\)/' => '']);
        $tag = trim(preg_replace(array_keys($patterns), array_values($patterns), $tag));

        if (config('lecturize.tags.camel_case', false)) {
            $tag = camel_case($tag);
            $tag = ucfirst($tag);
        }

        $tag = trim($tag);

        return $tag;
    }
public static function taggify($tag)
    {
        $filters = config('lecturize.tags.filters', []);
        $tag = trim(str_replace(array_keys($filters), array_values($filters), $tag));

        $patterns = config('lecturize.tags.patterns', ['/\(([^)]+)\)/' => '']);
        $tag = trim(preg_replace(array_keys($patterns), array_values($patterns), $tag));

        if (config('lecturize.tags.camel_case', false)) {
            $tag = camel_case($tag);
            $tag = ucfirst($tag);
        }

        $tag = trim($tag);

        return $tag;
    }
public static function taggify ( $ tag ) { $ filters = config ( 'lecturize.tags.filters' , [ ] ) ; $ tag = trim ( str_replace ( array_keys ( $ filters ) , array_values ( $ filters ) , $ tag ) ) ; $ patterns = config ( 'lecturize.tags.patterns' , [ '/\(([^)]+)\)/' => '' ] ) ; $ tag = trim ( preg_replace ( array_keys ( $ patterns ) , array_values ( $ patterns ) , $ tag ) ) ; if ( config ( 'lecturize.tags.camel_case' , false ) ) { $ tag = camel_case ( $ tag ) ; $ tag = ucfirst ( $ tag ) ; } $ tag = trim ( $ tag ) ; return $ tag ; }
Taggify a given string

@param  string  $tag
@return string
Taggify a given string