Skip to content

Commit

Permalink
Fixed #32
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Jul 18, 2021
1 parent ad76e00 commit d9299f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function boot()
return;
}

DB::listen(function (QueryExecuted $query) {
$this->app['events']->listen(function (QueryExecuted $query) {
if ($query->time < $this->app['config']->get('logging.query.slower_than', 0)) {
return;
}
Expand Down

0 comments on commit d9299f4

Please sign in to comment.