From 970ef30f8ebaf4a979300a3de8e2420cbff40061 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 16 Feb 2019 01:32:25 -0600 Subject: [PATCH] command for moon mailer --- app/Console/Commands/moonmailer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index e6520921a..6eb24c37a 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -64,7 +64,7 @@ class MoonMailerCommand extends Command foreach($rentals as $rental) { $price = $moonCalc->SpatialMoonsOnlyGoo($rental->FirstOre, $rental->FirstQuantity, $rental->SecondOre, $rental->SecondQuantity, $rental->ThirdOre, $rental->ThirdQuantity, $rental->FourthOre, $rental->FourthQuantity); - dd($price); + //Update the moon rental price MoonRent::where([ 'System' => $rental->System, @@ -74,9 +74,10 @@ class MoonMailerCommand extends Command 'Price' => $price[$rental->Type], ]); } - + //Re-pull all of the rentals from the database $rentals = MoonRent::all(); + dd($rentals); //Cycle through each rental and send a mail out foreach($rentals as $rental) { //Create the body for the mail to be sentout