Skip to content
This repository was archived by the owner on Jun 18, 2019. It is now read-only.

Commit ce68833

Browse files
committed
updated helper method
1 parent 8c0b59f commit ce68833

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: tests/TestsBase.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,9 @@ protected function getPackageAliases($app)
135135
protected function enableQueryCounter()
136136
{
137137
$that = $this;
138-
$event = App::make('events');
139-
$event->listen('illuminate.query', function ($query, $bindings) use ($that) {
138+
DB::listen(function($query) use ($that) {
140139
$that->queriesCount++;
141-
$bindings = $this->formatBindingsForSqlInjection($bindings);
142-
$query = $this->insertBindingsIntoQuery($query, $bindings);
143-
$query = $this->beautifyQuery($query);
144-
// echo("\n--- Query {$that->queriesCount}--- $query\n");
140+
// echo("\n--- Query {$that->queriesCount}--- $query->sql\n");
145141
});
146142
}
147143

0 commit comments

Comments
 (0)