/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $editcurrency = Currency::whereId($id)->first(); $currency = Currency::paginate(10); $currency->setpath(''); return view('setting/currency')->with('editcurrency', $editcurrency)->with('id', $id)->with('currency', $currency); }