Skip to content
Advertisement

Laravel Debugbar few tabs are not showing e.g. Route, Auth, Session, Gate

I am using Laravel Debugbar https://github.com/barryvdh/laravel-debugbar with Laravel 7.x according to documentation it should be show this enter image description here

but my debugbar missing few tabs Route, Auth, Session, Gate etc. please see below

enter image description here Please Help i can get above shown tabs Regards, Thanks in advance

Advertisement

Answer

Publish the config debugbar.php in /config

php artisan vendor:publish –provider=”BarryvdhDebugbarServiceProvider”

you can customize tabs in the config/debugbar.php :

...
'collectors' => [
    'phpinfo'         => true,  // Php version
    'messages'        => true,  // Messages
    'time'            => true,  // Time Datalogger
    'memory'          => true,  // Memory usage
    'exceptions'      => true,  // Exception displayer
    'log'             => true,  // Logs from Monolog (merged in messages if enabled)
    'db'              => true,  // Show database (PDO) queries and bindings
    'views'           => true,  // Views with their data
    'route'           => true,  // Current route information
    'auth'            => false, // Display Laravel authentication status
    'gate'            => true,  // Display Laravel Gate checks
    'session'         => true,  // Display session data
    'symfony_request' => true,  // Only one can be enabled..
    'mail'            => true,  // Catch mail messages
    'laravel'         => false, // Laravel version and environment
    'events'          => false, // All events fired
    'default_request' => false, // Regular or special Symfony request logger
    'logs'            => false, // Add the latest log messages
    'files'           => false, // Show the included files
    'config'          => false, // Display config settings
    'cache'           => false, // Display cache events
    'models'          => true,  // Display models
],
....

don’t forget to do

php artisan config:clear

if you use config cache

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement