public function getView($id) { return view('store.show')->with('products', Product::find($id))->with('categories', Category::all())->with('db', Product::all())->with('options', Gambar::where('product_id', '=', $id)->lists('name', 'img')); }
public function getView($id) { return view('store.show')->with('products', Product::find($id))->with('options', Gambar::where('product_id', '=', $id)->get()); }
public function getExtra($id) { return view('a.productsextra')->with('products', Product::find($id))->with('images', Gambar::where('product_id', '=', $id)->get()); }