structure controller

This commit is contained in:
2018-12-08 00:20:08 -06:00
parent d9fe1b80f4
commit 75bff89d37

View File

@@ -72,7 +72,7 @@ class StructureController extends Controller
/**
* Calculate the final taxes and send to display
*/
$tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->avg(['tax']);
$tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get(['tax']);
$rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax');
dd($tax);