Laravel 5: Enable laravel-debugbar

前端 未结 12 1616
星月不相逢
星月不相逢 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:31

    In my case, the problem was I had a wide route, Route::get('/{all?}','...') catching the debugbar one.

    I managed to solve this by adding these routes before:

    Route::get( '/api/_debugbar/assets/stylesheets', '\Barryvdh\Debugbar\Controllers\AssetController@css' );
    Route::get( '/api/_debugbar/assets/javascript', '\Barryvdh\Debugbar\Controllers\AssetController@js' );
    

提交回复
热议问题