diff --git a/app/Providers/TelescopeServiceProvider.php b/app/Providers/TelescopeServiceProvider.php index 96ee60e..5e7a0f1 100644 --- a/app/Providers/TelescopeServiceProvider.php +++ b/app/Providers/TelescopeServiceProvider.php @@ -14,13 +14,13 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider */ public function register(): void { - // Telescope::night(); + Telescope::night(); $this->hideSensitiveRequestDetails(); $isLocal = $this->app->environment('local'); - Telescope::filter(function (IncomingEntry $entry) use ($isLocal) { + Telescope::filter(static function (IncomingEntry $entry) use ($isLocal) { return $isLocal || $entry->isReportableException() || $entry->isFailedRequest() || @@ -55,10 +55,9 @@ protected function hideSensitiveRequestDetails(): void */ protected function gate(): void { - Gate::define('viewTelescope', function ($user) { - return in_array($user->email, [ - 'sanderdenhollander12@gmail.com', - ]); + Gate::define('viewTelescope', static function ($user) { + return $user->can('manage health checks'); }); + } } diff --git a/config/health.php b/config/health.php index b2b9b67..8e585d1 100644 --- a/config/health.php +++ b/config/health.php @@ -112,7 +112,7 @@ * - light: light mode * - dark: dark mode */ - 'theme' => 'light', + 'theme' => 'dark', /* * When enabled, completed `HealthQueueJob`s will be displayed