\DB::enableQueryLog(); //sql开始 \log::info(\DB::getQueryLog());//sql结束 转载于:https://my.oschina.net/YeeSheldon/blog/686058