laravel/laravel — pull request #584 by bencorlett (2012-04-25 01:20:08+00:00)
Title: Adding having() support to the Fluent query builder.

Currently, the query builder doesn't support the HAVING sql clause. Now it does :)

I have looked over all the drivers that Laravel supports as well, just to make sure this method wasn't intentionally left out for some reason.

// Do a GROUP BY and HAVING i
DB::table('foo')->group_by('gender')->having('gender', '=', 'male')->get();