New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

maksimru/conditional-laravel-debugbar

Allows to boot laravel debug bar conditionally
6,301
Install
composer require maksimru/conditional-laravel-debugbar
Latest Version:v0.13
PHP:>=7
Laravel:5
License:MIT
Last Updated:Apr 27, 2020
Links: GitHub  ·  Packagist
Maintainer: maksimru

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

Related Packages

jkocik/laravel-profiler

Profiler for Laravel Framework

654,590 189
erlangparasu/laravel-debugbar-vscode

laravel-debugbar plugin that provide buttons to open vscode

5,909 7
maxtrunk/lumen-debugbar

PHP Debugbar integration for Lumen

4,153 3
joshbrw/laravel-debugbar-viewcomposers

View Composer Integration for Laravel DebugBar

8 0
digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resource...

623,973 114

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