average($request, RepairOrder::class, 'total_cost') ->format('$0,0.00') // Correct way to format currency ->allowZeroResult(); } /** * Get the metric's URI key. */ public function uriKey() { return 'average-repair-cost'; } }