Lumen eloquent 使用 DB::listen 报错 Undefined index: driverErrorException?
eloquent 和DB是不同的两个组件.那么使用eloquent的时候如何dump 执行的SQL呢,参考文档使用AppServiceProvider中的boot
DB::listen(function ($sql, $bindings, $time) {
});
会提示:
Undefined index: driverErrorException
求助在Lumen里面如何打印执行的SQL语句:)
推荐文章: