/** * @param string $name * * @return string */ public function getPath($name) { $name = str_replace($this->getAppNamespace(), '', $name); return $this->module->getPath(str_replace('\\', '/', $name) . '.php'); }
/** * Reset migrations on a single module. * * @param ModuleContainer $module * * @return $this */ public function addModuleToReset(ModuleContainer $module) { $path = $module->getPath(['database', 'migrations']); $this->_migrator->requireFiles($path, $this->_migrator->getMigrationFiles($path)); return $this; }