/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $topupRequest = TopupRequest::find($id); $commodities = Commodity::has('receipts')->lists('name', 'id'); $sections = TestCategory::all()->lists('name', 'id'); return View::make('topup.edit')->with('topupRequest', $topupRequest)->with('sections', $sections)->with('commodities', $commodities); }