TIP 26 / 100

Grouping by First Letter.

You can group Eloquent results by any custom condition, here's how to group by first letter of user's name:

php
$users = User::all()->groupBy(function($item) {
    return $item->name[0];
});