From 0edbeacd3dbff40b973fc8399e37d285a649545c Mon Sep 17 00:00:00 2001 From: iwindy <203962638@qq.com> Date: Thu, 12 Aug 2021 14:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3laravel8=E4=BB=A5=E4=B8=8B?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 74b85f0..1ae46c3 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -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; }