public static function undoRemoveBills(Request $request) { if (Auth::user()) { //Remove bill \App\userBills::undoRemoveBill($request->billId); //Update to users table \App\userBills::updateBillAmount(); return \App\userBills::get(); } }
public static function getBill() { if (Auth::user()) { return \App\userBills::get(); } }