laravel/laravel — pull request #1344 by kapv89 (2012-10-12 10:29:00+00:00)
Title: Allow aggregates to work with group_by

Modified the aggregate method so that when it is called on a query which has groupings, the current query would be called as a sub query on which the aggregating function would be applied