The debugbar doesn’t seem to work on my environment (Laravel Framework 9.52.16)
I have required the package with composer
:
composer require barryvdh/laravel-debugbar --dev
In my .env
file APP_DEBUG
is set to true
In config/app.php
, under “providers” I have added this at the end:
BarryvdhDebugbarServiceProvider::class,
In the app/Providers/AppServiceProvider.php
I have added this inside the register method
public function register()
{
$loader = IlluminateFoundationAliasLoader::getInstance();
$loader->alias('Debugbar', BarryvdhDebugbarFacadesDebugbar::class);
}
And I have published the package config with this:
php artisan vendor:publish --provider="BarryvdhDebugbarServiceProvider"
I’ve also ran:
php artisan config:clear
php artisan cache:clear
composer dump-autoload
After all those steps, Laravel DebugBar
is still not shown, what am I missing?