/** * Show the form for creating a new resource. * * @return Response */ public function create() { $saldo = Saldo::all()->toArray(); return view('barang.create', compact('saldo')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $saldo = Saldo::find($id); $saldo->delete(); return redirect('saldo'); }