Nwidart\Modules\Traits\ModuleCommandTrait::getModuleName PHP Method

getModuleName() public method

Get the module name.
public getModuleName ( ) : string
return string
    public function getModuleName()
    {
        $module = $this->argument('module') ?: app('modules')->getUsedNow();
        $module = app('modules')->findOrFail($module);
        return $module->getStudlyName();
    }
ModuleCommandTrait