1 year ago

How to set every row on table to the same value

Posted 1 year ago by graffislife

How to set every row at the table to same value if the order id and inventory id is the same. This is my code on my controller.

if($order->user_order_id == $order->inventory->user_id){ DB::table('orders')->update(array('payment' => 1)); }

Please sign in or create an account to participate in this conversation.