src/Support/Str.php
public static function humanize(string $text): string
    {
        $text = \str_replace(['-', '_'], ' ', $text);

        return Stringy::create($text)->humanize()->titleize();
    }
public static function humanize(string $text): string
    {
        $text = \str_replace(['-', '_'], ' ', $text);

        return Stringy::create($text)->humanize()->titleize();
    }
public static function humanize ( string $ text ) : string { $ text = \ str_replace ( [ '-' , '_' ] , ' ' , $ text ) ; return Stringy :: create ( $ text ) -> humanize ( ) -> titleize ( ) ; }
Convert slug type text to human readable text.

@param  string  $text

@return string
Convert slug type text to human readable text .