public static function addCard(Request $request)
 {
     if (Auth::user()) {
         $data = ['type' => $request->type, 'issuer' => $request->issuer, 'cclimit' => $request->cclimit, 'ccnote' => $request->ccnote, 'due_date' => $request->billDue, 'exp_mth' => $request->expMth, 'exp_year' => $request->expYear, 'last_four' => $request->lastFour];
         \App\CreditCard::addCard($data);
     }
 }
 public function userFinanceData(Request $request)
 {
     if (Auth::user()) {
         //Update Currency
         DB::table('users')->where('id', Auth::user()->id)->update(['mth_income' => $request->mthlyInc, 'currency' => $request->currency]);
         //Add Cards
         $cardsData = $request->cards;
         //don't forget 'billDue' in card
         if (!empty($cardsData)) {
             foreach ($request->cards as $card) {
                 \App\CreditCard::addCard($card);
             }
             //End foreach
         } else {
             echo "empty request";
         }
     }
 }