/**
  * Handle the command.
  *
  * @param AddonCollection $addons
  */
 public function handle(AddonCollection $addons)
 {
     foreach ($addons->enabled() as $addon) {
         $options = ['--addon' => $addon->getNamespace()];
         if ($this->command->option('force')) {
             $options['--force'] = true;
         }
         if ($this->command->option('pretend')) {
             $options['--pretend'] = true;
         }
         if ($this->command->option('seed')) {
             $options['--seed'] = true;
         }
         if ($database = $this->command->option('database')) {
             $options['--database'] = $database;
         }
         $this->command->call('migrate', $options);
     }
     return;
 }