示例#1
0
 public function edit()
 {
     $remark = Input::get('remark');
     $orderid = Input::get('orderid');
     $status = Input::get('status');
     // $data = DB::update("update orders set remark = '" . $remark . "' where id = " . $orderid);
     $order = Orders::findOrFail($orderid);
     $order->remark = $remark;
     $order->status = $status;
     $order->save();
     $tag = new Tag();
     $tag->updateRelation($orderid);
     return redirect()->route('order.details', ['orderid' => $orderid]);
 }