示例#1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(AddProduct $request, $id)
 {
     $products = Product::find($id);
     $products->update($request->all());
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(AddProduct $request, $id)
 {
     $product = Product::find($id);
     $product->update($request->all());
     return redirect('product/list');
 }