From e9ed64608f966e5d0f7ffd4d12a5e2cd21bce441 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 31 May 2019 21:50:00 -0500 Subject: [PATCH] moon mailer --- app/Console/Commands/moonmailer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index 3b393ea2d..2e148607f 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -78,7 +78,10 @@ class MoonMailerCommand extends Command //then update parameters of the moon foreach($contacts as $contact) { //Get the moons the renter is renting - $rentals = $this->GetRentalMoons($contact); + //$rentals = $this->GetRentalMoons($contact); + + $rentals = MoonRental::where(['Contact' => $contact->Contact])->get(); + dd($rentals); //Totalize the cost of the moons $cost = $this->TotalizeMoonCost($rentals);