/** * Get module path. If $name not null, we will use that. * * @param string $name * @return string */ protected function getModulePath($name = null) { if ($name) { return $this->module->getModulePath($name); } return $this->module->getPath(); }
/** * Get model paths. * * @return string */ protected function getModelPath() { return $this->module->getModulePath($this->moduleName) . "/models/"; }
/** * Get migration path for the specified module. * * @param $module * @return string */ protected function getMigrationPath($module) { return $this->module->getModulePath($module) . 'database/migrations/'; }
/** * Get seeder path. * * @return string */ protected function getPath() { return $this->module->getModulePath($this->moduleName) . "database/seeds/"; }