code: public function prettify(Collection $packages)
      {
          $summary = [];
  
          foreach ($packages as $key => $package) {
              $summary[] = [
                  'id'   => $key + 1,
                  'name' => $this->prettifyPackageInfo($package),
              ];
          }
  
          return $packages[$this->askPackageKey($summary)]['name'];
      }
docs: Prettify Package result.
  
  @param Collection $packages
  
  @return mixed