diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index 848146569..91e348cfb 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -120,7 +120,7 @@ class MoonMailerCommand extends Command $sentmail->save(); //After saving the record, delete the record from the database - if($today->equalTo($rental->RentalEnd)) { + if($today->greaterThanOrEqualTo($rental->RentalEnd)) { MoonRent::where(['id' => $rental->id])->delete(); }