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