laravel/framework — pull request #5475 by pevawi (2014-08-16 07:36:18+00:00)
Title: [proposal] Create a getKeyd version to retrieve the models/records in a associative array using the primary key as a key

I find myself doing this over and over again creating a associative array with the primary key as a key for the array. It could be handy to have it in Laravel directly.