$collection collect([
['name'=>'Twitter','valuation'=>'$13B'],
['name'=>'Facebook','valuation'=>'$522B'],
});
$collection->keyBy('name')->all();
/* [
"Twitter"=>[
"name"=>"Twitter",
"valuation"=>"$13B",
],
"Facebook"=>[
"name"=>"Facebook",
"valuation"=>"$522B",
]
]*/