Files
fotospiel-app/routes/console.php
Codex Agent 8f13465415
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled
Implement tenant announcements and audit log fixes
2026-01-02 14:19:46 +01:00

32 lines
994 B
PHP

<?php
use App\Models\SuperAdminActionLog;
use App\Services\Monitoring\PackageLimitMetrics;
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');
Artisan::command('metrics:package-limits {--reset}', function () {
$snapshot = PackageLimitMetrics::snapshot();
$this->line(json_encode([
'generated_at' => now()->toIso8601String(),
'metrics' => $snapshot,
], JSON_PRETTY_PRINT));
if ($this->option('reset')) {
PackageLimitMetrics::reset();
$this->comment('Package limit metrics cache was reset.');
}
})->purpose('Inspect package limit monitoring counters and optionally reset them');
Schedule::command('model:prune', [
'--model' => [SuperAdminActionLog::class],
])->daily();
Schedule::command('tenant-announcements:dispatch')->everyFiveMinutes();