diff --git a/src/PulseServiceProvider.php b/src/PulseServiceProvider.php index 9b1321fc..fe4e4475 100644 --- a/src/PulseServiceProvider.php +++ b/src/PulseServiceProvider.php @@ -105,8 +105,8 @@ public function boot() */ protected function registerRoutes() { - Route::get(config('pulse.path'), function () { - $this->app->make(Pulse::class)->doNotReportUsage = true; + Route::get(config('pulse.path'), function (Pulse $pulse) { + $pulse->doNotReportUsage = true; return view('pulse::dashboard'); })->middleware(config('pulse.middleware'));