コード例 #1
0
ファイル: Migrator.php プロジェクト: artesaos/migrator
 /**
  * Set the default connection name.
  *
  * @param  string  $name
  * @return void
  */
 public function setConnection($name)
 {
     if (!is_null($name)) {
         $this->resolver->setDefaultConnection($name);
     }
     $this->repository->setSource($name);
     $this->connection = $name;
 }
コード例 #2
0
ファイル: InstallCommand.php プロジェクト: artesaos/migrator
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->repository->setSource($this->input->getOption('database'));
     $this->repository->createRepository();
     $this->info('Migration table created successfully.');
 }