src/Primitive/Support/Str.php
public static function studly($value)
    {
        if (isset(static::$studlyCache[$value]))
        {
            return static::$studlyCache[$value];
        }

        $value = ucwords(str_replace(['-', '_'], ' ', $value));

        return static::$studlyCache[$value] = str_replace(' ', '', $value);
    }
public static function studly($value)
    {
        if (isset(static::$studlyCache[$value]))
        {
            return static::$studlyCache[$value];
        }

        $value = ucwords(str_replace(['-', '_'], ' ', $value));

        return static::$studlyCache[$value] = str_replace(' ', '', $value);
    }
Convert a value to studly caps case.

@param  string $value

@return string