laravel 8 debugbar code example
Example 1: laravel debugbar
composer require barryvdh/laravel-debugbar --dev
Barryvdh\Debugbar\ServiceProvider::class,
'Debugbar' => Barryvdh\Debugbar\Facade::class,
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
Example 2: Laravel Debugbar
composer require barryvdh/laravel-debugbar --dev
Example 3: debug bar laravel print array
Debugbar::info($object);
Debugbar::error('Error!');
Debugbar::warning('Watch out…');
Debugbar::addMessage('Another message', 'mylabel');