Lumen 查询执行SQL

app('db')->connection()->enableQueryLog(); //这里就是要查询的SQL语句 $log = app('db')->getQueryLog(); dd($log); //打印sql语句
相关文章
相关标签/搜索