Skip to content

Commit

Permalink
Merge pull request #34 from iwindy/master
Browse files Browse the repository at this point in the history
修正laravel8以下版本兼容性
  • Loading branch information
overtrue authored Aug 12, 2021
2 parents d9299f4 + 0edbeac commit 6de73d1
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;
}

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

0 comments on commit 6de73d1

Please sign in to comment.