DB::connection()->enableQueryLog();#开启执行日志 $result = DB::table('advert')->whereJsonContains('tag',"1")->get(); dd(DB::getQueryLog());