How to set every row on table to the same value

Posted 8 months 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.