laravel/framework — pull request #3471 by JamShady (2014-02-06 15:17:34+00:00)
Title: Added $withBindings parameter to Builder::toSql()

Adds a $withBindings parameter so that the SQL returned by toSql() can be executed directly, or passed through to DB::raw() etc

See #3456 for additional commentary