22-05-2026 Optimierung der User und Admin Panels
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
Kevin Adametz 2026-05-22 11:18:59 +02:00
parent d2ba22c0cf
commit e8c47b7553
73 changed files with 10282 additions and 1546 deletions

View file

@ -1,5 +1,6 @@
<?php
use App\Console\Commands\PublishScheduledPressReleases;
use App\Console\Commands\PurgeExpiredPressReleaseDrafts;
use App\Console\Commands\PurgeMagicLinks;
use Illuminate\Foundation\Inspiring;
@ -27,3 +28,14 @@ Schedule::command(PurgeExpiredPressReleaseDrafts::class, ['--days=180'])
->at('04:00')
->withoutOverlapping()
->runInBackground();
// ========================================
// Geplante PM-Veröffentlichung
// ========================================
// PM mit scheduled_at <= now & Status review automatisch veröffentlichen.
// Läuft alle 5 Min — passt zum FormRule "scheduled_at min. 5 Min in Zukunft".
Schedule::command(PublishScheduledPressReleases::class)
->everyFiveMinutes()
->withoutOverlapping()
->runInBackground();