Esempio n. 1
0
 public function update(Requests\OrderRequest $request, $id)
 {
     $input = $request->all();
     $order = $this->orderModel->find($id)->update($input);
     return redirect()->route('orders.index');
 }
 public function update(Requests\OrderRequest $orderRequest, $id)
 {
     $this->order->find($id)->update($orderRequest->all());
     return redirect()->route('orders');
 }
 public function update(Requests\OrderRequest $orderRequest, $id)
 {
     $this->order->find($id)->update($orderRequest->all());
     $orders = $this->order->all();
     return view('order.index', compact('orders'));
 }