maksimru / conditional-laravel-debugbar
Allows to boot laravel debug bar conditionally
Installs: 6 300
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7
- illuminate/cache: ^5.5
- illuminate/contracts: ^5.5
- illuminate/queue: ^5.5
- illuminate/redis: ^5.5
- illuminate/session: ^5.5
- illuminate/support: ^5.5
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.1
- fzaninotto/faker: ~1.4
- laravel/framework: ^5.5
- mockery/mockery: 0.9.*
- orchestra/testbench: ~3.0
- orchestra/testbench-browser-kit: ~3.1
- phpunit/phpunit: 6
This package is auto-updated.
Last update: 2025-02-27 23:20:24 UTC
README
About
Allows to boot laravel-debugbar with custom conditions instead of APP_DEBUG and environment You are free to use \Auth::check(), custom headers, custom parameters or anything you wish
Installation
composer require maksimru/conditional-laravel-debugbar
Usage
- Publish config file with
php artisan vendor:publish
- Create new boot validator implementing \MaksimM\ConditionalDebugBar\Interfaces\DebugModeChecker interface
- Replace validator class in config/conditional-debugbar.php in debugbar-boot-validator (See provided example for more details)
- Add \MaksimM\ConditionalDebugBar\Http\Middleware\OptionalDebugBar::class middleware on routes where you wish to use the debugbar
Thanks to barryvdh for awesome barryvdh/laravel-debugbar