コード例 #1
0
 public function tag($name)
 {
     $tagName = $name;
     $categories = Category::Available()->get();
     $products = Product::select(['products.id as id', 'products.name as name', 'products.description as description', 'products.price as price'])->ByTagName($name)->get();
     return view('store.tag', compact('categories', 'products', 'tagName'));
 }