composer require barryvdh/laravel-debugbar --dev

二、(可选)修改配置文件app/config.php

Laravel 5.5使用Package Auto-Discovery,因此不需要您手动添加ServiceProvider。 当APP_DEBUG为true时,将启用Debugbar

如果使用catch-all/fallback路由,请确保在自己的App ServiceProviders之前加载Debugbar ServiceProvider。

如果不使用auto-discovery,请将ServiceProvider添加到config/app.php中的providers数组:

Barryvdh\Debugbar\ServiceProvider::class,

如果你想添加 facades,就在 aliases 中数组加入:

'Debugbar' => Barryvdh\Debugbar\Facade::class,

三、(可选)使用publish命令将软件包配置复制到本地配置

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

四、高级用法

相关资料:

  https://packagist.org/packages/barryvdh/laravel-debugbar

  http://phpdebugbar.com/docs/readme.html

  https://laravel-china.org/articles/4185/laravel-debugbar-do-not-go-to-the-treasure-debugger?order_by=created_at&

相关文章:

  • 2021-11-28
  • 2021-11-05
  • 2021-06-18
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
猜你喜欢
  • 2021-04-08
  • 2021-10-13
  • 2021-11-08
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-01-15
相关资源
相似解决方案