Exemplo n.º 1
0
 public function tag(Category $cat, Tag $t, $id)
 {
     $categories = $cat->all();
     $tag = $t->find($id);
     $products = $tag->products;
     return view('store.tag', compact('categories', 'tag', 'products'));
 }
Exemplo n.º 2
0
 /**
  *
  *
  * @param \PortalComercial\Tag $tag
  * @param $id
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function addProductTags(\PortalComercial\Tag $tag, $id)
 {
     $tags = $tag->lists('name', 'id');
     return view('product.product_add_tag', compact('tags', 'id'));
 }