Skip to content

Instantly share code, notes, and snippets.

@vovanmix
Created March 9, 2016 22:47
Show Gist options
  • Save vovanmix/9c302e0914221c8683f0 to your computer and use it in GitHub Desktop.
Save vovanmix/9c302e0914221c8683f0 to your computer and use it in GitHub Desktop.
<?php
\DB::listen(function($sql, $bindings, $time) {
var_dump( vsprintf(str_replace("?", "'%s'", $sql), $bindings) );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment