<?php

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

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

// Schedule update checks (daily at 2 AM)
Schedule::command('updates:check')
    ->dailyAt('02:00')
    ->withoutOverlapping()
    ->onOneServer();

// Smart billing reminders (invoices due / overdue / quotation expiry). Requires cron: * * * * * php artisan schedule:run
Schedule::command('reminders:process')
    ->hourly()
    ->withoutOverlapping();
