protected function parseName($name)
    {
        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '/', $name);
        }

        if (str_contains($name, '/')) {
            $formats = collect(explode('/', $name))->map(function ($name)
            {
                return Str::studly($name);
            });

            $name = $formats->implode('/');
        } else {
            $name = Str::studly($name);
        }

        return $name;
    }
protected function parseName($name)
    {
        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '/', $name);
        }

        if (str_contains($name, '/')) {
            $formats = collect(explode('/', $name))->map(function ($name)
            {
                return Str::studly($name);
            });

            $name = $formats->implode('/');
        } else {
            $name = Str::studly($name);
        }

        return $name;
    }
protected function parseName ( $ name ) { if ( str_contains ( $ name , '\\' ) ) { $ name = str_replace ( '\\' , '/' , $ name ) ; } if ( str_contains ( $ name , '/' ) ) { $ formats = collect ( explode ( '/' , $ name ) ) -> map ( function ( $ name ) { return Str :: studly ( $ name ) ; } ) ; $ name = $ formats -> implode ( '/' ) ; } else { $ name = Str :: studly ( $ name ) ; } return $ name ; }
Parse class name of the Package.

@param string $slug

@return string
Parse class name of the Package .