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