laravel/framework — pull request #3269 by anlutro (2014-01-16 16:56:03+00:00)
Title: Allow Eloquent Builder wheres with closures

Currently if you do `MyModel::where(function($q) { ... });` $q will be an instance of Illuminate\Database\Query\Builder. This is unfortunate if you want to utilize Eloquent\Builder's functionality in the nested where. This fixes that.