Update TransactionsController.php