laravel5 打印mysql执行语句方法

我使用的是laravel5.6使用DB::table(‘user’)查询而后打印执行的结果 打开 app/Providers/AppServiceProvider.php,而后在boot方法加入如下代码php DB::listen(function($sql) { foreach ($sql->bindings as $i => $binding)
相关文章
相关标签/搜索