foreach ($products as $v=>$a)
{
$count[] = array('product_name' => $a['name'], 'product_weight' => $a['weight'], 'product_id' => $a['pid'], 'product_price' => $a['price'], 'order_id' => $order->id, 'card_phone' => $user->phone);
}
CountOrder::insert($count);
在使用 laravel 的批量插入數據時,
插入的數據的創建時間卻都是 0000000;
創建時間 和 更新時間字段 如何正常保存呢 ,難道也要在數組里面寫入嗎?