Guest User

Untitled

a guest
Aug 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. <?php
  2.  
  3. \DB::listen(function($query) {
  4. static $i = 0;
  5. $sql = str_replace('?', '"%s"', $query->sql);
  6. \Log::debug(sprintf('********** Query number %d ********** ', ++$i) . vsprintf($sql, $query->bindings));
  7. });
Add Comment
Please, Sign In to add comment