laravel debug bar
snippet in php

laravel debug bar

user9948

composer require barryvdh/laravel-debugbar --dev

laravel debugbar

user2947

composer require barryvdh/laravel-debugbar --dev
  
// config/app.php
// ServiceProviders
Barryvdh\Debugbar\ServiceProvider::class,
// Facades
'Debugbar' => Barryvdh\Debugbar\Facade::class,


php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

debug bar laravel print array

user4919

Debugbar::info($object);
Debugbar::error('Error!');
Debugbar::warning('Watch out…');
Debugbar::addMessage('Another message', 'mylabel');