stephenjude/filament-debugger
Composer 安装命令:
composer require stephenjude/filament-debugger
包简介
About
README 文档
README
Filament Debugger
Easily add Telescope, Horizon and Laravel Pulse to Filament admin panel.
Installation
You can install the package via composer:
composer require stephenjude/filament-debugger
Usages
use Stephenjude\FilamentDebugger\DebuggerPlugin; public function panel(Panel $panel): Panel { return $panel ->plugin( DebuggerPlugin::make() ); }
Custom Role/Permission
You can authorize the plugin for users with a specific role/permission:
DebuggerPlugin::make() ->authorize(condition: fn() => auth()->user()->can('view.debuggers'));
Custom Navigation Group
You can customize the navigation group:
use Stephenjude\FilamentDebugger\DebuggerPlugin; $panel->plugin( DebuggerPlugin::make() ->navigationGroup(condition: true, label: 'Debugger') );
Custom Navigation Items
You can customize the navigation items:
use Stephenjude\FilamentDebugger\DebuggerPlugin; $panel->plugin( DebuggerPlugin::make() ->horizonNavigation( condition: fn () => auth()->user()->can('view.horizon'), label: 'Horizon', icon: 'heroicon-o-globe-europe-africaglobe-europe-africa', url: url('horizon'), openInNewTab: fn () => true ) ->telescopeNavigation( condition: fn()=> auth()->user()->can('view.telescope'), label: 'Telescope', icon: 'heroicon-o-sparkles', url: url('telescope'), openInNewTab: fn () => true ) ->pulseNavigation( condition: fn () => auth()->user()->can('view.pulse'), label: 'Pulse', icon: 'heroicon-o-bolt', url: url('pulse'), openInNewTab: fn () => true ) );
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 your application defined permissions provided by overidding the gate() and authorization() methods inside the HorizonServiceProvider, TelescopeServiceProvider and PulseServiceProvider respectively.
protected function gate() { Gate::define('viewHorizon', function ($user) { return $user->can('view.debuggers'); }); } protected function authorization() { Auth::setDefaultDriver(config('filament.auth.guard')); parent::authorization(); }
Testing
composer test
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
License
The MIT License (MIT). Please see License File for more information.
stephenjude/filament-debugger 适用场景与选型建议
stephenjude/filament-debugger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 160.12k 次下载、GitHub Stars 达 103, 最近一次更新时间为 2022 年 08 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「stephenjude」 「filament-debugger」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 stephenjude/filament-debugger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stephenjude/filament-debugger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 stephenjude/filament-debugger 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Add default sorting column to your eloquent model
Filament Two Factor Authentication: Google 2FA + Passkey Authentication
Generate plain PHP files using artisan console commands.
A simple wallet implementation for Laravel
A simple Laravel API implementation for all payment providers like Paystack, Flutterwave, & Paypal etc.
Paystack Lite - Use Paystack Checkout Form on the go.
统计信息
- 总下载量: 160.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 103
- 点击次数: 24
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-11

