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; }