From 929cdf40520b2ea75017945aefa462ae84cf6a0f Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 7 Dec 2018 04:11:47 -0600 Subject: [PATCH] StructureController --- app/Http/Controllers/StructureController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index 6435f8d5f..aad365981 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -72,10 +72,10 @@ class StructureController extends Controller * Calculate the final taxes and send to display */ - $tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel']) + $tax = DB::table('CorpStructures')->where(['corporation_id' => $corporation, 'structure_type' => 'Citadel']) ->avg('tax'); dd($tax); - $rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery']) + $rTax = DB::table('CorpStructures')->where(['corporation_id' => $corporation, 'structure_type' => 'Refinery']) ->avg('tax'); $monthTaxesMarket = $monthTaxesMarket - $fuelCost;