laravel/framework — pull request #4404 by AMHOL (2014-05-13 10:20:45+00:00)
Title: Prepare Query Bindings for Exception

Prepare query bindings (format DateTime etc.) before passing them to Illuminate\Database\QueryException, this will prevent the "Object of class DateTime could not be converted to string" error that occurs when query errors are encountered.