📜  laravel 打印执行查询 - PHP 代码示例

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

代码示例1
DB::enableQueryLog();
$users = User::select("*")->get();
$quries = DB::getQueryLog();
dd($quries);
DB::table('users')->toSql();
dd($query);