notifications table). Ensure the project’s DB schema supports this.composer require tomatophp/filament-alerts)..env.laravel/framework and filament/filament versions are compatible.notifications table. No schema migrations required unless customizing.php artisan vendor:publish --provider="Tomato\FilamentAlerts\FilamentAlertsServiceProvider")..env:
FCM_KEY=your_key
FCM_PROJECT_ID=your_project
<h1>{{ $alert->title }}</h1>
<p>{{ $alert->message }}</p>
config/filament-alerts.php:
'channels' => [
'mail' => true,
'fcm' => env('FCM_ENABLED', false),
],
NotificationFailed events to log failures.mail:work) handles volume well.| Component | Failure Scenario | Mitigation |
|---|---|---|
| Email Channel | SMTP provider outage | Fallback to queue retry logic. |
| FCM Channel | Firebase API downtime | Implement retry with exponential backoff. |
| Database | Notification table corruption | Regular backups; use Laravel’s failed_jobs table. |
| Templates | Blade template errors | Validate templates in staging. |
| Frontend (FCM) | Service worker registration failure | Graceful degradation (show toast instead). |
notify() vs. routeNotificationFor()).How can I help you explore Laravel packages today?