/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     /** Add cache */
     $transactions = Cache::remember('transaction_logs', 15 / 60, function () {
         return Transaction_log::with('user')->with('bank_account')->with('currency')->get();
         //simplePaginate(10);
     });
     //       $transactions = Transaction_log::with('user')->with('bank_account')->with('currency')->get();
     return response()->json(['data' => $transactions], 200);
     //        return view('transaction.index')->with('transactions', $transactions);
 }