/** * Display a listing of the resource. * * @return Response */ public function index() { $data = Departemen::all(); return view('departemen/index', compact('data')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $data = Anggota::find($id); $depart = Departemen::all(); return view('anggota.edit', compact('data', 'depart')); }