\DB::connection()->enableQueryLog();? ? // 在sql之前開啟
$orders= $this->order->select("customer_id","budding_num")->where($orderMap)->get()->toArray();? ?//sql
$sql_log= \DB::getQueryLog();? ?//打印日志
dd($sql_log);
\DB::connection()->enableQueryLog();? ? // 在sql之前開啟
$orders= $this->order->select("customer_id","budding_num")->where($orderMap)->get()->toArray();? ?//sql
$sql_log= \DB::getQueryLog();? ?//打印日志
dd($sql_log);