common-gateway/customer-notifications-bundle
Notification facade).Messenger, HttpClient), which are natively supported in Laravel.notifications, channels, and recipients. Migration compatibility depends on existing DB structure (e.g., Eloquent models vs. raw queries).Notification facade + third-party APIs (e.g., Twilio, Mailgun) achieve the same with less risk?FailedJob system?Bus/Queue for async notifications.autoconfigure, compatible with Laravel’s DI.notifiable:sent) or use its own event system.Notification facade as a fallback during testing.NotificationSent events).symfony/messenger version).Notifiable interface, extend the bundle’s Notifiable trait or create a wrapper class.composer require common-gateway/customer-notifications-bundle.php artisan vendor:publish --provider="CommonGateway\CustomerNotificationsBundle\CustomerNotificationsBundle"..env.QUEUE_CONNECTION) and retry logic.VCR for HTTP requests).monolog is configured to capture notification events.recipient_id, status).chunk() for bulk sends to avoid timeouts.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Third-party API outage | Notifications fail silently | Implement dead-letter queues and alerts (e.g., Slack/PagerDuty). |
| Database lock/contention | Slow delivery or timeouts | Use database read replicas for reporting; optimize queries. |
| Queue backlog | Delayed notifications | Monitor Horizon; scale workers or use priority queues. |
| Invalid recipient data | Bounced emails/SMS | Validate data before sending; use webhooks to handle bounces. |
| Configuration errors | All notifications fail |
How can I help you explore Laravel packages today?