laravel/framework — pull request #1454 by bmsantiago (2013-05-29 19:18:22+00:00)
Title: Add type param to Eloquent\Builder has method.

Was imposible to use something like this:

public function scopeActives($query) {
return $query->has('groups')->has('deals', '>=', 1, 'or');
}