/**
  * Remove the specified resource from storage.
  *
  * @param $categoryId
  * @param $productId
  * @param  int $id
  * @return Response
  */
 public function destroy($categoryId, $productId, $id)
 {
     $category = Category::findOrFail($categoryId);
     $product = Product::findOrFail($productId);
     $picture = Picture::findOrFail($id);
     $picture->delete();
     return redirect()->route('category.products.pictures.index', [$category->id, $product->id]);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param $categoryId
  * @param $productId
  * @return Response
  */
 public function destroy($categoryId, $productId)
 {
     $category = Category::findOrFail($categoryId);
     $product = $category->products()->find($productId);
     $product->delete();
     return redirect()->route('category.products.index', $category->id);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $category = Category::findOrFail($id);
     $category->delete();
     return redirect()->route('category.index');
 }