public function updateapproved($id)
 {
     $order = Orders::findOrFail($id);
     $order->status = 1;
     $order->update();
     return redirect('orders');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id, Request $request)
 {
     //$this->validate($request, ['name' => 'required']); // Uncomment and modify if needed.
     $order = Orders::findOrFail($id);
     $order->update($request->all());
     return redirect('orders');
 }