コード例 #1
0
 public function index()
 {
     $categories = $this->category->all();
     $featureds = $this->product->Featured()->get();
     $recommendeds = $this->product->Recommended()->get();
     return view('store.index', compact('categories', 'featureds', 'recommendeds'));
 }