/** * 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; }
/** * 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."); }