Laravel debug bar

Safaetul Ahasan
1 min readJan 3, 2023

--

To use the Laravel debug bar, you will need to install the laravel/ui package and the barryvdh/laravel-debugbar package using Composer:

composer require laravel/ui barryvdh/laravel-debugbar --dev

Next, you will need to publish the assets for the debug bar using the vendor:publish Artisan command:

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

Then, in your config/app.php file, make sure that the Barryvdh\Debugbar\ServiceProvider service provider is registered:

'providers' => [
// Other service providers
Barryvdh\Debugbar\ServiceProvider::class,
],

Finally, in your .env file, make sure that the APP_DEBUG environment variable is set to true.

With these steps completed, the debug bar should now be displayed at the bottom of your application’s pages when you are in development mode. The debug bar will show you information about your application’s routes, queries, and other data that can help you to identify performance bottlenecks and debug issues.

For more information on using the Laravel debug bar, you can refer to the official documentation: https://laravel.com/docs/debugbar.

https://github.com/barryvdh/laravel-debugbar

--

--

Safaetul Ahasan
Safaetul Ahasan

No responses yet