moon mailer

This commit is contained in:
2019-05-31 21:50:00 -05:00
parent 36330f6d46
commit e9ed64608f

View File

@@ -78,7 +78,10 @@ class MoonMailerCommand extends Command
//then update parameters of the moon //then update parameters of the moon
foreach($contacts as $contact) { foreach($contacts as $contact) {
//Get the moons the renter is renting //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 //Totalize the cost of the moons
$cost = $this->TotalizeMoonCost($rentals); $cost = $this->TotalizeMoonCost($rentals);