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);