Files
ladill-hosting/app/Console/Commands/NotifyExpiringHostingCommand.php
T
isaaccladandCursor e251a4cf60
Deploy Ladill Hosting / deploy (push) Failing after 17s
Initial Ladill Hosting app with Gitea deploy pipeline.
Shared web hosting extracted from the platform monolith, with CI deploy
to /var/www/ladill-hosting matching Bird/Domains/Email.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 16:24:20 +00:00

25 lines
599 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\Hosting\HostingExpiryAlertService;
use Illuminate\Console\Command;
class NotifyExpiringHostingCommand extends Command
{
protected $signature = 'hosting:notify-expiring';
protected $description = 'Send hosting plan expiry reminder emails';
public function handle(HostingExpiryAlertService $alerts): int
{
$sent = $alerts->checkAll();
$this->info($sent > 0
? "Sent {$sent} hosting expiry reminder(s)."
: 'No hosting expiry reminders to send.');
return self::SUCCESS;
}
}