Laravel 5: Enable laravel-debugbar

前端 未结 12 1575
星月不相逢
星月不相逢 2020-12-23 14:19

I\'m using Laravel 5 and would like to use the barryvdh/laravel-debugbar. After the installation and configuration the bar is not showing.

I did the following:

12条回答
  •  攒了一身酷
    2020-12-23 14:49

    Open the terminal and to do like this as your wise

    1) Install DebugBar

    • The DebugBar 2.4.x is for Laravel 5.4-
    • The DebugBar 3.0.x is for Laravel 5.5+

    A) Install the debuger 2.4 (Documentation)

    composer require barryvdh/laravel-debugbar:~2.4
    

    You will also need to add in providers array in config/app.php :

    Barryvdh\Debugbar\ServiceProvider::class
    

    B) Install the debuger 3.0 (Documentation)

    composer require barryvdh/laravel-debugbar --dev
    

    2) After that, you need to update the composer

    composer update
    

    3) Then after you need to add a line to .env file

    APP_DEBUG=true
    

    4) Clear cache and config

    php artisan cache:clear
    
    php artisan config:cache
    

提交回复
热议问题