예제 #1
0
 public function update(OrderRequest $request, $id)
 {
     $flag = $this->repository->update($request->all(), $id);
     if (is_null($flag)) {
         session()->flash('message-danger', 'Error ao gravar os dados.');
     } else {
         session()->flash('message-success', 'Dados gravados com sucesso.');
     }
     return redirect()->route('admin.orders.index');
 }
예제 #2
0
 public function update($id, Request $request)
 {
     $this->orderRepository->find($id)->update($request->all());
     return redirect()->route('delivery.orders.index');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(OrderRequest $request, $id)
 {
     $this->order->update($request->all(), $id);
     return redirect()->route('admin.order.index');
 }