/**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     if ($this->option('force')) {
         $this->info('Clearing config...');
         $this->config->clearConfig();
         $this->navigation->clearConfig();
     }
     $this->info('Searching for models in your application...');
     $existingModels = $this->config->getModelsAsClassNames(false);
     $actualModels = $this->finder->findModels();
     $this->info('Removing obsolete models from config...');
     $this->removeObsoleteModels(array_diff_assoc($existingModels, $actualModels));
     $this->info('Adding new models into config...');
     $this->addNewModels(array_diff_assoc($actualModels, $existingModels));
     $this->info('Reanalyzing elegant models...');
     $this->analyzeCurrentModels();
     $this->checkExtensionsForCurrentModels();
     $this->info('Done!');
 }