maksimru/conditional-laravel-debugbar

Allows to boot laravel debug bar conditionally

Installs: 6 301

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/maksimru/conditional-laravel-debugbar

v0.13 2018-08-24 08:43 UTC

This package is auto-updated.

Last update: 2025-09-28 00:29:35 UTC


README

Scrutinizer Code Quality codecov StyleCI CircleCI

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

  1. Publish config file with
php artisan vendor:publish
  1. Create new boot validator implementing \MaksimM\ConditionalDebugBar\Interfaces\DebugModeChecker interface
  2. Replace validator class in config/conditional-debugbar.php in debugbar-boot-validator (See provided example for more details)
  3. 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