public function update(Requests\ProductRequest $request, \CodeCommerce\Product $product)
 {
     $product->featured = null;
     $product->recommend = null;
     $tagIds = $this->getTagIds($request->get('tags'));
     $product->update($request->all());
     $product->tags()->sync($tagIds);
     return redirect()->route('products.index');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $this->product->update($request->all(), $id);
 }