code: public function search()
      {
          $this->console->info('Searching directory for facades(aliases).');
  
          $facades = $this->getFacades();
  
          if (!$facades->count()) {
              $this->console->warn('No facades file found. Nothing to install.');
  
              return [];
          }
  
          $this->console->line(
              " Found {$facades->count()} facade".($facades->count() > 1 ? 's' : '').'.'
          );
  
          $facades->each(function ($facade, $index) {
              $currentCount = $index + 1;
  
              $this->console->line(" $currentCount. $facade");
          });
  
          if (!$this->console->confirm('Register facades?', true)) {
              return [];
          }
  
          $this->registered = true;
  
          return $this->getFacades()->toArray();
      }
docs: Search package by given name.
  
  @return array