1composer require barryvdh/laravel-debugbar --dev
2
3// config/app.php
4// ServiceProviders
5Barryvdh\Debugbar\ServiceProvider::class,
6// Facades
7'Debugbar' => Barryvdh\Debugbar\Facade::class,
8
9
10php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
1composer require barryvdh/laravel-debugbar --dev
2php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
1Debugbar::info($object);
2Debugbar::error('Error!');
3Debugbar::warning('Watch out…');
4Debugbar::addMessage('Another message', 'mylabel');
1if (env('APP_DEBUG')) {
2 $app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
3}