Beispiel #1
0
 /**
  * Generate the files.
  */
 public function generateFiles()
 {
     foreach ($this->getFiles() as $stub => $file) {
         $path = $this->module->getModulePath($this->getName()) . $file;
         $this->filesystem->put($path, $this->getStubContents($stub));
         $this->console->info("Created : {$path}");
     }
 }
Beispiel #2
0
 /**
  * Get the destination path for the specified module.
  *
  * @param $module
  * @return string
  */
 protected function getDestinationPath($module)
 {
     return $this->module->getAssetsPath() . '/' . strtolower($module);
 }
 /**
  * Get migrations path.
  *
  * @return string
  */
 protected function getMigrationPath($name)
 {
     $path = str_replace(base_path(), '', $this->module->getModulePath($name));
     return $path . $this->laravel['config']->get('modules::paths.generator.migration');
 }