Download the PHP package stephenjude/filament-debugger without Composer
On this page you can find all versions of the php package stephenjude/filament-debugger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stephenjude/filament-debugger
More information about stephenjude/filament-debugger
Files in stephenjude/filament-debugger
Package filament-debugger
Short Description About
License MIT
Homepage https://github.com/stephenjude/filament-debugger
Informations about the package filament-debugger
Filament Debugger
Easily add Laravel Telescope and Horizon to Filament admin panel.
Installation
You can install the package via composer:
Run the setup command using
This is the contents of the published config file:
Add the plugin to your panel plugins array
Debuggers
This package comes with first party Laravel packages for development and monitoring your Laravel application.
Laravel Telescope
Telescope provides insight into the requests coming into your application, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps, and more. Documentation.
Laravel Horizon
Horizon allows you to easily monitor key metrics of your queue system such as job throughput, runtime, and job failures. Documentation.
Usage
Now you can view the installed debuggers when you log in into your filament admin panel.
Gates & Authorization
When using filament debuggers (Horizon & Telescope) 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 and TelescopeServiceProvider respectively.
Navigation Access
We need to set authorization to true
inside the filament debugger config if we want to make it visible to only users with correct access in the admin panel navigation.
Update HorizonServiceProvider.php
Update TelescopeServiceProvider.php
Creating Permissions
To make use of the permissions configured in this package we need a permission package like Laravel Permissions or Bouncer which usually comes with the Permission
Model. USe what works for you.
The permissions we need to create is already defined inside the filament debugger config file.
Here is an example using the Spatie Permission Package:
You can also use your already created permission by updating the permission configuration:
Screenshots:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- stephenjude
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-debugger with dependencies
filament/filament Version ^3.0
laravel/horizon Version ^5.21
laravel/telescope Version ^4.16|^5.0
spatie/laravel-package-tools Version ^1.9.2