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'];
    }
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'];
    }
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' ] ; }
Prettify Package result.

@param Collection $packages

@return mixed
Prettify Package result .