|
@@ -24,7 +24,7 @@ |
|
|
block discarded – undo |
|
24
|
24
|
public function runQueryDebugger($log = true, $terminal = false) |
|
25
|
25
|
{ |
|
26
|
26
|
if (Config::get('hello.query_debugger')) { |
|
27
|
|
- DB::listen(function ($event) use ($terminal, $log) { |
|
|
27
|
+ DB::listen(function($event) use ($terminal, $log) { |
|
28
|
28
|
$fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings); |
|
29
|
29
|
|
|
30
|
30
|
$text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery; |
Please login to merge, or discard this patch.