## Summary - Add `SyncUserToResendListener` to automatically sync users to Resend contacts on registration - Add `ResendService` for Resend API interactions - Add `resend:sync` command to bulk sync existing users ## Changes - **New**: `app/Listeners/SyncUserToResendListener.php` - Auto-discovered queued listener - **New**: `app/Services/ResendService.php` - Service for Resend contacts API - **New**: `app/Console/Commands/ResendSyncCommand.php` - Bulk sync command - **New**: Tests for listener and command ## Usage New users are automatically synced on registration. For existing users: ```bash php artisan resend:sync ``` ## Test plan - [x] New user registration triggers contact sync - [x] `resend:sync` command syncs all existing users - [x] Graceful handling when API key is not configured - [x] Duplicate contacts are handled by Resend (no errors) |
||
|---|---|---|
| .. | ||
| Demo | ||
| BudgetPeriodService.php | ||
| BudgetTransactionService.php | ||
| PeriodComparator.php | ||
| ResendService.php | ||