Exemple #1
0
 /**
  * Execute the console command.
  */
 public function handle()
 {
     if (!$this->confirmToProceed()) {
         return;
     }
     $this->mappings->setSource($this->option('database'));
     $this->mappings->reset();
     $this->comment('Mapping repository reset successfully');
 }
Exemple #2
0
 /**
  * Set the default connection name.
  *
  * @param string $name
  *
  * @return void
  */
 public function setConnection($name)
 {
     $this->repository->setSource($name);
 }
Exemple #3
0
 /**
  * Execute the console command.
  */
 public function handle()
 {
     $this->repository->setSource($this->option('database'));
     $this->repository->createRepository();
     $this->info('Mapping table created successfully');
 }