在 laravel 中使用 debugbar 调试 php 函数:安装 debugbar。在 config/app.php 中添加 debugbarserviceprovider。运行 artisan vendor:publish 命令以发布配置。在 boot 方法中启用工具条。使用 debugba