Deploy Ladill Woo Manager / deploy (push) Successful in 2m11s
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>
22 lines
515 B
PHP
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;
|
|
}
|
|
}
|