Ejemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $categories = Category::lists('name', 'id');
     $merchants = Merchant::lists('name', 'id');
     $coupon = Coupon::find($id);
     return view('admin.coupon.update', compact('categories', 'merchants'))->with('coupon', $coupon);
 }