diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index ce136a4ee..7fe22ace7 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -72,8 +72,8 @@ class StructureController extends Controller /** * Calculate the final taxes and send to display */ - $tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get()->avg('tax'); - $rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->get()->avg('tax'); + $tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->avg(['tax']); + $rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax'); dd($tax); $monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost;