Skip to content

Commit 6de73d1

Browse files
authored
Merge pull request #34 from iwindy/master
修正laravel8以下版本兼容性
2 parents d9299f4 + 0edbeac commit 6de73d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function boot()
3333
return;
3434
}
3535

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

0 commit comments

Comments
 (0)