Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- \DB::listen(function($query) {
- static $i = 0;
- $sql = str_replace('?', '"%s"', $query->sql);
- \Log::debug(sprintf('********** Query number %d ********** ', ++$i) . vsprintf($sql, $query->bindings));
- });
Add Comment
Please, Sign In to add comment