Files
ladill-woo-manager/app/Console/Commands/NotifyProExpiringCommand.php
T
isaaccladandCursor cfdc8c7c09
Deploy Ladill Woo Manager / deploy (push) Successful in 2m11s
Add Woo Manager email notification milestones with shared mail templates.
New order, store connected, Pro expiry, and past-due alerts use the Ladill notification layout with woo branding; expiry reminders dedupe per threshold like hosting.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 02:59:45 +00:00

22 lines
515 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\Woo\WooProExpiryAlertService;
use Illuminate\Console\Command;
class NotifyProExpiringCommand extends Command
{
protected $signature = 'woo:pro-expiry-alerts';
protected $description = 'Send Woo Manager Pro/Business expiry milestone emails';
public function handle(WooProExpiryAlertService $alerts): int
{
$sent = $alerts->checkAll();
$this->info("Sent {$sent} pro expiry alert(s).");
return self::SUCCESS;
}
}