📌  相关文章
📜  eloquent 获取查询日志 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:31.131000             🧑  作者: Mango

代码示例2
DB::connection()->enableQueryLog(); //enable query log
 $data = $order->all(); //query execute
 $queries = DB::getQueryLog(); //get query
 return dd($queries); //show query