网站制作学习网PHP→正文:thinkphp6 关闭trace
字体:

thinkphp6 关闭trace

PHP 2022/6/20 16:52:32  点击:不统计


 怎么在thinkphp6中关闭trace信息呢,因为thinkphp6默认加入了think-trace模块,不能通过config配置进行关闭。
可以通过修改composer.json 去掉,最简单的是通过composer命令进行关闭

关闭thinkphp6 trace 命令:
composer remove topthink/think-trace --dev

开启 thinkphp6 trace命令:
composer require topthink/think-trace --dev

可以通过composer 里面看到对应配置

"require-dev": {
    "topthink/think-trace": "^1.4"
},

·上一篇:thinkphp6批量update更新 >>    ·下一篇:thinkphp6模板变量调用函数 >>
推荐文章
最新文章