public function tag($id, Category $category, Tag $tag, Product $product)
 {
     $categories = $category->all();
     $tag = $tag->find($id);
     $products = $product->ofTag($id)->get()->all();
     return view('store.tag', compact('categories', 'tag', 'products'));
 }
 public function add($id)
 {
     $cart = $this->getCart();
     $product = Product::find($id);
     $cart->add($id, $product->name, $product->price);
     Session::set('cart', $cart);
     return redirect()->route('cart');
 }
 public function product($id)
 {
     $categories = Category::all();
     $product = Product::find($id);
     return view('store.product', compact('categories', 'product'));
 }