/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $product = Product::find($id);
     $category = Category::lists('name', 'id');
     $brand = Brand::lists('name', 'id');
     $origin = Origin::lists('name', 'id');
     return view('products.edit', compact('product', 'category', 'brand', 'origin'));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $origin = Origin::find($id);
     $origin->delete($id);
     return redirect()->route('origin.index');
 }