Skip to content

Commit

Permalink
Add pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
punyflash committed May 30, 2024
1 parent 77726ec commit aeafdf3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DebuggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
10 changes: 10 additions & 0 deletions src/Traits/HasDebuggers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit aeafdf3

Please sign in to comment.