Application 2016-06-26

Using the Debug Tool laravel-debugbar in Laravel

Introducing the laravel-debugbar debug tool for Laravel.

Read in: ja
Using the Debug Tool laravel-debugbar in Laravel

Introducing the laravel-debugbar debug tool for Laravel.

github-laravel-debugbar

It works with both Laravel 5.1 and 5.2.

Screenshot 2016-06-27 0.12.17.png

Installing laravel-debugbar with composer

composer require barryvdh/laravel-debugbar --dev

then

composer install

Enabling with facade

While you can use it as a debug tool just by installing, it's convenient to enable it with a facade for more detailed debugging.

Specify the following in the provider and alias sections of app.php respectively.

Trying it out

\Debugbar::error(); \Debugbar::disable(); Debugbar::startMeasure(); Debugbar::stopMeasure();

And many more.

Thoughts

It's very convenient (゜レ゜)

Tags: Laravel
Share: 𝕏 Post Facebook Hatena
✏️ View source / Discuss on GitHub
☕ Support

If you enjoy this blog, consider supporting it. Every bit helps keep it running!


Related Articles