예제 #1
0
 /**
  * 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();
 }
예제 #2
0
 /**
  * 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/';
 }
예제 #4
0
 /**
  * Get seeder path.
  *
  * @return string
  */
 protected function getPath()
 {
     return $this->module->getModulePath($this->moduleName) . "database/seeds/";
 }