Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $data = Akun::find($id)->toArray();
     $tipeakuns = TipeAkun::all()->toArray();
     $currencies = MataUang::all()->toArray();
     return view('akun.edit', compact('data', 'tipeakuns', 'currencies'));
 }
Example #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $data = TipeAkun::all()->toArray();
     return view('tipeakun.index', compact('data'));
 }