Ejemplo n.º 1
0
 /** @inheritdoc */
 protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     $this->intro();
     if (empty($_path = $this->option('output-path'))) {
         $_path = 'database';
     }
     try {
         $_path = Disk::path([base_path(), $_path], true);
     } catch (\Exception $_ex) {
         $this->error('Unable to write to output path "' . $_path . '"');
         return false;
     }
     $this->destination = $_path;
     if ('default' == ($this->database = $this->argument('database'))) {
         $this->database = config('database.default');
     }
     return true;
 }