public function index(Category $category, Product $product)
 {
     $categories = $category->all();
     $pFeatured = $product->featured()->get();
     $pRecommend = $product->recommend()->get();
     return view('store.index', compact('categories', 'pFeatured', 'pRecommend'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $featured = Product::featured()->get();
     $recommend = Product::recommend()->get();
     $categories = Category::all();
     return view('store.index', compact('categories', 'featured', 'recommend'));
 }