コード例 #1
0
 public function getUpdate(Request $request)
 {
     $data = Laporan::find($request->id);
     $data->jabatan = $request->jabatan;
     $data->nama = $request->nama;
     $data->nip = $request->nip;
     $data->save();
     $data['laporan'] = Laporan::paginate(1);
     return redirect()->route('laporan', $data)->with(session()->flash('success', 'Data Berhasil diupdate !!'));
 }