public function getDelete($id) { Legalitas::where('id', $id)->delete(); return redirect()->back()->with(session()->flash('success', 'Berhasil menghapus data')); }
public function getEdit(Request $r, $id) { $data['pe'] = User::find($id); $data['kelompok'] = JenisUsaha::where('kelompok_bidang', 'Pengolah')->first()->kelompok; $data['legalitas'] = Legalitas::all(); return view('app.pengolah.update', $data); }