<?php

use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;

Artisan::command('inspire', function () {
    $this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');

/*
|--------------------------------------------------------------------------
| Cron Jobs — Set these up directly in cPanel / Hostinger
|--------------------------------------------------------------------------
|
| Replace /home/username/public_html with your actual hosting path.
|
| 1. Daily Tier Assessment (every day at 1am):
|
|    Full auto — upgrades AND downgrades applied immediately:
|    0 1 * * * /usr/local/bin/php /home/username/public_html/artisan tiers:assess --auto-approve=true --auto-downgrade=true >> /dev/null 2>&1
|
|    Auto-upgrade only — downgrades need admin approval:
|    0 1 * * * /usr/local/bin/php /home/username/public_html/artisan tiers:assess --auto-approve=true --auto-downgrade=false >> /dev/null 2>&1
|
|    All changes need admin approval:
|    0 1 * * * /usr/local/bin/php /home/username/public_html/artisan tiers:assess --auto-approve=false --auto-downgrade=false >> /dev/null 2>&1
|
| 2. Daily Points Expiry (every day at 2am):
|    0 2 * * * /usr/local/bin/php /home/username/public_html/artisan loyalty:expire-points >> /dev/null 2>&1
|
| 3. Daily Expiry Reminders (every day at 9am):
|    0 9 * * * /usr/local/bin/php /home/username/public_html/artisan loyalty:send-expiry-reminders >> /dev/null 2>&1
|
| Note: PHP binary path may differ by host:
|   /usr/local/bin/php  — Hostinger
|   /usr/bin/php        — cPanel standard
| Run `which php` via SSH to confirm the correct path.
|
*/

