PHP Class Barryvdh\Debugbar\Middleware\Debugbar

Show file Open project: barryvdh/laravel-debugbar Class Usage Examples

Protected Properties

Property Type Description
$container Illuminate\Contracts\Container\Container The App container
$debugbar Barryvdh\Debugbar\LaravelDebugbar The DebugBar instance

Public Methods

Method Description
__construct ( Illuminate\Contracts\Container\Container $container, LaravelDebugbar $debugbar ) Create a new middleware instance.
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming request.

Protected Methods

Method Description
handleException ( $passable, Exception $e ) : mixed Handle the given exception.

Method Details

__construct() public method

Create a new middleware instance.
public __construct ( Illuminate\Contracts\Container\Container $container, LaravelDebugbar $debugbar )
$container Illuminate\Contracts\Container\Container
$debugbar Barryvdh\Debugbar\LaravelDebugbar

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
return mixed

handleException() protected method

(Copy from Illuminate\Routing\Pipeline by Taylor Otwell)
protected handleException ( $passable, Exception $e ) : mixed
$passable
$e Exception
return mixed

Property Details

$container protected property

The App container
protected Container,Illuminate\Contracts\Container $container
return Illuminate\Contracts\Container\Container

$debugbar protected property

The DebugBar instance
protected LaravelDebugbar,Barryvdh\Debugbar $debugbar
return Barryvdh\Debugbar\LaravelDebugbar