maksimru/conditional-laravel-debugbar
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
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.13 | >=7 | ^5.5 | MIT | |
| v0.12 | >=7 | ^5.5 | MIT | |
| v0.11 | >=7 | ^5.5 | MIT | |
| v0.10 | >=7 | ^5.5 | MIT |
