From 8e60537ae9dbf34908b15a9599bc13ceab95fbda Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 29 Dec 2018 21:18:41 -0600 Subject: [PATCH] mailer --- app/Console/Commands/calculatemarkettax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/calculatemarkettax.php b/app/Console/Commands/calculatemarkettax.php index f6911819f..77494815d 100644 --- a/app/Console/Commands/calculatemarkettax.php +++ b/app/Console/Commands/calculatemarkettax.php @@ -66,7 +66,7 @@ class CalculateMarketTax extends Command $end->second = 59; //Get the set of corporations from the structure table - $corps = CorpStructure::select('corporation_id')->get(); + $corps = CorpStructure::select('corporation_id')->groupBy('corporation_id')->get(); $this->line('Got all of the corps with markets.' . sizeof($corps)); foreach($corps as $corp) { $this->line('Entered foreach loop');