Skip to content

Commit

Permalink
Merge branch 'main' of github.com:stephenjude/filament-debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Sep 17, 2024
2 parents 0f9c36e + c555874 commit 963f0f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/stephenjude/filament-debugger/fix-php-code-style-issues.yml?branch=main&label=code%20style)](https://github.com/stephenjude/filament-debugger/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/stephenjude/filament-debugger.svg?style=flat-square)](https://packagist.org/packages/stephenjude/filament-debugger)

Easily add Laravel Telescope and Horizon to Filament admin panel.
Easily add Telescope, Horizon and Laravel Pulse to Filament admin panel.

![](https://raw.githubusercontent.com/stephenjude/filament-debugger/main/art/screen1.png)

Expand Down Expand Up @@ -91,13 +91,13 @@ $panel->plugin(
## Gates & Authorization
When using filament debuggers (Horizon, Telescope & Pulse) in production environment, we need to make sure that they are accessible to the authorized filament admin user.

To achive this, we need to use filament default authorization guard and the permissions provided in this package by overidding the `gate()` and `authorization()` methods inside the HorizonServiceProvider, TelescopeServiceProvider and PulseServiceProvider respectively.
To achive this, we need to use filament default authorization guard and your application defined permissions provided by overidding the `gate()` and `authorization()` methods inside the HorizonServiceProvider, TelescopeServiceProvider and PulseServiceProvider respectively.

```php
protected function gate()
{
Gate::define('viewHorizon', function ($user) {
return $user->can(config('filament-debugger.permissions.horizon'));
return $user->can('view.debuggers);
});
}

Expand Down

0 comments on commit 963f0f9

Please sign in to comment.