示例:
$oMsgs = DB::table('ad_log')->whereNull('deleted_at')
->where('post_id', $param['post_id'])
->select(DB::raw('max(status) status'))
->first();
$queries = DB::getQueryLog();
$a = end($queries);
$tmp = str_replace('?', '"'.'%s'.'"', $a["query"]);
echo vsprintf($tmp, $a['bindings']);
die;