/** * Get allocation totals * * @JS: * It is good, but not ideal. * Returning an AllocationTotal object that you could eventually use * with a transformer would be a good idea. * But it is fine to keep like this if you want :) * @param Transaction $transaction * @return Response */ public function show(Transaction $transaction) { return $transaction->getAllocationTotals(); }