/** * Get migration path for specific module. * * @param \Avantinternet\Modules\Module $module * @return string */ protected function getPath($module) { $path = $module->getExtraPath(config('modules.paths.generator.migration')); return str_replace(base_path(), '', $path); }
/** * Get migration path. * * @return string */ public function getPath() { return $this->module->getExtraPath(config('modules.paths.generator.migration')); }