From e332d4e55d3a7d67243fda03340e24b3c2ff0002 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 25 Dec 2019 23:52:07 -0600 Subject: [PATCH] flex structure issue --- app/Console/Commands/Flex/FlexStructureCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/Flex/FlexStructureCommand.php b/app/Console/Commands/Flex/FlexStructureCommand.php index f68a21252..820791a8d 100644 --- a/app/Console/Commands/Flex/FlexStructureCommand.php +++ b/app/Console/Commands/Flex/FlexStructureCommand.php @@ -74,13 +74,13 @@ class FlexStructureCommand extends Command //For each of the contacts, send a reminder mail about the total of the structures they are paying for foreach($contacts as $contact) { - - dd($contact); //Get all of the structures for requestor $structures = FlexStructure::where([ - 'requestor_id' => $contact, + 'requestor_id' => $contact->requestor_id, ])->get(); + dd($structures); + //Totalize the total cost of everything $totalCost = $this->TotalizeCost($structures);