예제 #1
0
 /**
  * Run the migration from the specified module.
  *
  * @param string $name
  *
  * @return mixed
  */
 protected function migrate($name)
 {
     $module = $this->module->findOrFail($name);
     $this->call('migrate', ['--path' => $this->getPath($module), '--database' => $this->option('database'), '--pretend' => $this->option('pretend'), '--force' => $this->option('force')]);
     if ($this->option('seed')) {
         $this->call('module:seed', ['module' => $name]);
     }
 }
예제 #2
0
파일: Installer.php 프로젝트: ycms/modules
 /**
  * Get destination path.
  *
  * @return string
  */
 public function getDestinationPath()
 {
     if ($this->path) {
         return $this->path;
     }
     return $this->repository->getModulePath($this->getModuleName());
 }
예제 #3
0
파일: Publisher.php 프로젝트: ycms/modules
 /**
  * Get laravel filesystem instance.
  *
  * @return \Illuminate\Filesystem\Filesystem
  */
 public function getFilesystem()
 {
     return $this->repository->getFiles();
 }
예제 #4
0
 /**
  * Set stub path.
  *
  * @param string $stubPath
  * @return $this 
  * @static 
  */
 public static function setStubPath($stubPath)
 {
     return \YCMS\Modules\Repository::setStubPath($stubPath);
 }