/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $perkiraan = Perkiraan::lists('kode_perkiraan', 'id'); $kas = Kas::find($id); return view('kas.edit', compact('kas', 'perkiraan')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Perkiraan::find($id)->delete(); return redirect('perkiraan')->with('message', 'Data berhasil dihapus!'); }