DB::connection()->enableQueryLog(); // 开启QueryLog
\App\User::find(1);
dump(DB::getQueryLog());
转载于:https://www.cnblogs.com/pcx105/p/10616482.html
DB::connection()->enableQueryLog(); // 开启QueryLog
\App\User::find(1);
dump(DB::getQueryLog());
转载于:https://www.cnblogs.com/pcx105/p/10616482.html