Mellivora/Console/GeneratorCommand.php
protected function qualifyClass($name)
    {
        $rootNamespace = $this->rootNamespace();

        if (Str::startsWith($name, $rootNamespace . '\\')) {
            return $name;
        }

        $name = str_replace('/', '\\', $name);

        return $this->qualifyClass(
            $this->getDefaultNamespace(trim($rootNamespace, '\\')) . '\\' . $name
        );
    }
protected function qualifyClass($name)
    {
        $rootNamespace = $this->rootNamespace();

        if (Str::startsWith($name, $rootNamespace . '\\')) {
            return $name;
        }

        $name = str_replace('/', '\\', $name);

        return $this->qualifyClass(
            $this->getDefaultNamespace(trim($rootNamespace, '\\')) . '\\' . $name
        );
    }
protected function qualifyClass ( $ name ) { $ rootNamespace = $ this -> rootNamespace ( ) ; if ( Str :: startsWith ( $ name , $ rootNamespace . '\\' ) ) { return $ name ; } $ name = str_replace ( '/' , '\\' , $ name ) ; return $ this -> qualifyClass ( $ this -> getDefaultNamespace ( trim ( $ rootNamespace , '\\' ) ) . '\\' . $ name ) ; }
Parse the class name and format according to the root namespace.

@param string $name

@return string
Parse the class name and format according to the root namespace .