/**
* 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()]);
}
}