21 lines
830 B
PHP
21 lines
830 B
PHP
<?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');
|
|
|
|
// Enforce the audit-log retention policy daily. The command is a no-op when
|
|
// `audit_retention_days` is empty/0 (keep forever); otherwise it deletes
|
|
// audit_events older than the configured number of days.
|
|
Schedule::command('clusev:prune-audit')->daily();
|
|
|
|
// Sample WireGuard peer traffic every minute (no-op when the collector is unconfigured/stale).
|
|
Schedule::command('clusev:wg-sample')->everyMinute();
|
|
|
|
// Refresh the cached latest-release tag so the sidebar update badge stays warm (cache TTL is 60 min).
|
|
Schedule::command('clusev:check-update')->everyThirtyMinutes();
|