コード例 #1
0
 /**
  * Get the path to the module.
  *
  * @param  string $slug
  * @return string
  */
 protected function getModulePath($slug = null, $allowNotExists = false)
 {
     if ($slug) {
         return $this->module->getModulePath($slug, $allowNotExists);
     }
     return $this->module->getPath();
 }
コード例 #2
0
 /**
  * Get module migration/ model path.
  *
  * @return string
  */
 protected function getPath($dir = 'migration')
 {
     $path = $this->module->getModulePath($this->moduleName);
     if ($dir == 'model') {
         return $path;
     }
     return $path . 'Database/Migrations/';
 }
コード例 #3
0
 /**
  * Get migrations path.
  *
  * @return string
  */
 protected function getMigrationPath($slug)
 {
     $path = $this->module->getModulePath($slug) . 'Database/Migrations';
     return $path;
 }
コード例 #4
0
 /**
  * Get module migration path.
  *
  * @return string
  */
 protected function getPath()
 {
     $path = $this->module->getModulePath($this->moduleName);
     return $path . 'Http/Controllers/';
 }
コード例 #5
0
 /**
  * Get module migration path.
  *
  * @return string
  */
 protected function getPath()
 {
     $path = $this->module->getModulePath($this->moduleName);
     return $path . 'Database/Seeds/';
 }
コード例 #6
0
 /**
  * Get module migration path.
  *
  * @return string
  */
 protected function getPath()
 {
     $path = $this->module->getModulePath($this->moduleName);
     return $path . 'Resources/Views/Emails/';
 }
コード例 #7
0
 /**
  * Get module migration path.
  *
  * @return string
  */
 protected function getPath()
 {
     $path = $this->module->getModulePath($this->moduleName);
     return $path . 'Http/Requests/';
 }