/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $productCategoryList = ProductCategory::lists('title', 'id'); $productLineList = ProductLine::lists('title', 'id'); $productList = Product::lists('title', 'id'); $productTagList = ProductTag::lists('name', 'name'); return View('admin.products.edit', ['productCategoryList' => $productCategoryList, 'productLineList' => $productLineList, 'productList' => $productList, 'product' => Product::find($id), 'productTagList' => $productTagList]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $productCategoryList = ProductCategory::lists('title', 'id'); return View('admin.productLines.edit', ['productCategoryList' => $productCategoryList, 'productLine' => ProductLine::find($id)]); }