feat: Phase 5.1 - Scheduled Report Emails
Code Style & Quality / Laravel Pint (push) Waiting to run
Code Style & Quality / PHPStan Static Analysis (push) Waiting to run
Code Style & Quality / Test Suite (push) Waiting to run
Code Style & Quality / Browser Tests (Dusk) (push) Waiting to run

- Create SendScheduledReport job (runs daily 08:00)
- Create ScheduledReportMail Mailable with Blade template
- Add receive_reports boolean to users table (migration)
- Register job in routes/console.php

Tests: 101 passing (319 assertions)
This commit is contained in:
Javier Braña
2026-09-01 13:23:20 +02:00
parent a9bbf8ca57
commit c50a1a2080
5 changed files with 275 additions and 0 deletions
+4
View File
@@ -2,6 +2,7 @@
use App\Jobs\CaptureDailyProgressSnapshot;
use App\Jobs\NotifyOverdueTasks;
use App\Jobs\SendScheduledReport;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
@@ -18,3 +19,6 @@ Schedule::job(new NotifyOverdueTasks)->dailyAt('07:00');
// Capturar snapshot diario de progreso (para curva S, EVM, desvíos)
Schedule::job(new CaptureDailyProgressSnapshot)->dailyAt('06:30');
// Enviar informes programados diarios (08:00)
Schedule::job(new SendScheduledReport)->dailyAt('08:00');