diff --git a/src/DebuggerPlugin.php b/src/DebuggerPlugin.php index be3587c..4917e53 100755 --- a/src/DebuggerPlugin.php +++ b/src/DebuggerPlugin.php @@ -25,6 +25,7 @@ public function boot(Panel $panel): void collect([ 'horizon' => $this->horizon(), 'telescope' => $this->telescope(), + 'pulse' => $this->pulse(), ]) ->only(config('filament-debugger.debuggers')) ->values() diff --git a/src/Traits/HasDebuggers.php b/src/Traits/HasDebuggers.php index e5537f9..7fc3436 100755 --- a/src/Traits/HasDebuggers.php +++ b/src/Traits/HasDebuggers.php @@ -34,4 +34,14 @@ public static function horizon(): NavigationItem ->url(url: url()->to(config('filament-debugger.url.horizon')), shouldOpenInNewTab: true) ->label('Horizon'); } + + public static function pulse(): NavigationItem + { + return NavigationItem::make() + ->visible(self::authorized(config('filament-debugger.permissions.pulse'))) + ->group(config('filament-debugger.group')) + ->icon('heroicon-o-arrow-trending-up') + ->url(url: url()->to(config('filament-debugger.url.pulse')), shouldOpenInNewTab: true) + ->label('Pulse'); + } }