PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Laurence Perales  >  Laravel Debugbar Enable On Demand  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Debugbar Enable On Demand
Activate the Laravel DebugBar dynamically
Author: By
Last change:
Date: 5 months ago
Size: 606 bytes
 

Contents

Class file image Download

Laravel Debugbar Extension

This package allows you to enable the Debugbar on deman, despite being disabled by configuration.

DEBUGBAR_ENABLED=false

config/app.php

'providers' => [   
    // 
    // Barryvdh\Debugbar\ServiceProvider::class,
    JaguarSoft\LaravelDebugbar\Provider\DebugbarServiceProvider::class,
],
'aliases' => [
    //
    'Debugbar' => Barryvdh\Debugbar\Facade::class,
],

Middleware

public function handle($request, Closure $next){
    if(/your validation/){
        \Debugbar::enable();
    }
    return $next($request);
}