laravel/framework — pull request #6557 by AnthonyConklin (2014-12-03 06:47:05+00:00)
Title: Modified groupBy() method on Collection Class to return Collections

Allows users to do things like this
```php
$users = User::all();
foreach ($users->groupBy('group_id') as $userGroup)
{
//Show how many users in group
echo $userGroup->count();

//Get first user in group
dd($userGroup->first());
}
```