コード例 #1
0
 /**
  * Create a new migration command instance.
  *
  * @param  \Illuminate\Database\Migrations\Migrator  $migrator
  * @return void
  */
 public function __construct(Migrator $migrator, Filesystem $fileSystem)
 {
     parent::__construct($fileSystem);
     $this->migrator = $migrator;
 }
コード例 #2
0
 /**
  * Get migration path (either specified by '--path' option or default location).
  *
  * @return string
  */
 protected function getMigrationPath($moduleName)
 {
     if (!is_null($targetPath = $this->input->getOption('path'))) {
         return $this->laravel->basePath() . '/' . $targetPath;
     }
     return parent::getMigrationPath($moduleName);
 }