src/Traits/ConsoleMakeModuleCommand.php
protected function rootNamespace(): string
    {
        return $this->rootNamespace ?? $this->rootNamespace = implode('\\', array_map('ucfirst', explode('/', trim($this->moduleName()))));
    }
protected function rootNamespace(): string
    {
        return $this->rootNamespace ?? $this->rootNamespace = implode('\\', array_map('ucfirst', explode('/', trim($this->moduleName()))));
    }
protected function rootNamespace ( ) : string { return $ this -> rootNamespace ?? $ this -> rootNamespace = implode ( '\\' , array_map ( 'ucfirst' , explode ( '/' , trim ( $ this -> moduleName ( ) ) ) ) ) ; }
Get the root namespace for the class.

@return string
Get the root namespace for the class .