public function getUpdate(Request $request) { $dt = RumputLaut::find($request->id); $dt->provinsi = $request->provinsi; $dt->kabupaten = $request->kabupaten; $dt->kecamatan = $request->kecamatan; $dt->desa = $request->desa; $dt->rtp = $request->rtp; $dt->panjang_pantai = $request->panjang_pantai; $dt->potensi = $request->potensi; $dt->luas_tanam = $request->luas_tanam; $dt->bentangan = $request->bentangan; $dt->bibit_cottoni = $request->bibit_cottoni; $dt->bibit_spinosum = $request->bibit_spinosum; $dt->cottoni_basah = $request->cottoni_basah; $dt->cottoni_kering = $request->cottoni_kering; $dt->spinosum_basah = $request->spinosum_basah; $dt->spinosum_kering = $request->spinosum_kering; $dt->keterangan = $request->keterangan; $dt->save(); $data['rumputlaut'] = RumputLaut::paginate(1); return redirect()->route('rumputlaut', $data)->with(session()->flash('success', 'Data Berhasil diupdate !!')); }