Nwidart\Modules\Module::getName PHP Method

getName() public method

Get name.
public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

Usage Example

 /**
  * Run the migration from the specified module.
  *
  * @param Module $module
  *
  * @return mixed
  */
 protected function migrate(Module $module)
 {
     $path = str_replace(base_path(), '', (new Migrator($module))->getPath());
     $this->call('migrate', ['--path' => $path, '--database' => $this->option('database'), '--pretend' => $this->option('pretend'), '--force' => $this->option('force')]);
     if ($this->option('seed')) {
         $this->call('module:seed', ['module' => $module->getName()]);
     }
 }
All Usage Examples Of Nwidart\Modules\Module::getName