/**
  * Display the specified resource.
  * GET /subcategories/{id}
  *
  * @param Request $request
  *
  * @param SubCategory $subCategory
  * @return Response
  */
 public function show(Request $request, SubCategory $subCategory)
 {
     $data = $this->subcategory->includeRelatedProducts($subCategory, $request);
     return view('frontend.subcategories.products', $data)->with('subcategory', array_get($data, 'sub'))->with('products', array_get($data, 'pages'));
 }
 /**
  * Store a newly created subCategory in storage.
  *
  * @param SubCategoryRequest $request
  *
  * @return Response
  */
 public function store(SubCategoryRequest $request)
 {
     $this->data = $this->subcategory->add($request->all());
     return $this->handleRedirect($request, route('backend.subcategories.index'));
 }