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;