debugger in laravel

83

Debugbar::info($object);
Debugbar::error('Error!');
Debugbar::warning('Watch out…');
Debugbar::addMessage('Another message', 'mylabel');
Barryvdh\Debugbar\ServiceProvider::class,
$app->configure('debugbar');
if (env('APP_DEBUG')) {
 $app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
}
'Debugbar' => Barryvdh\Debugbar\Facade::class,
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
Debugbar::startMeasure('render','Time for rendering');
Debugbar::stopMeasure('render');
Debugbar::addMeasure('now', LARAVEL_START, microtime(true));
Debugbar::measure('My long operation', function() {
    // Do something…
});

Comments

Submit
0 Comments