DB::connection()->enableQueryLog();# 开启执行日志 $result = DB::table('advert')->whereJsonContains('tag',"1")->get(); dd(DB::getQueryLog());
来源: http://www.bubuko.com/infodetail-3458248.html