/**
  * Execute the console command.
  */
 public function handle()
 {
     $this->addon = $this->getAddon();
     if (parent::handle() !== false) {
         if ($this->option('migration')) {
             $table = $this->toTable($this->argument('name'));
             $this->call('make:migration', ['name' => $this->option('migration'), '--addon' => $this->option('addon'), '--create' => $table]);
         }
     }
 }
 /**
  * The constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->setStubDirectory(__DIR__ . '/../stubs');
 }