mpociot/laravel-firebase-sync
retrieved, saved, deleted) for sync triggers.firebase/php-jwt and Firebase REST API access. May need additional SDKs (e.g., kreait/firebase) for modern Firebase features.api_key, auth_domain, etc., match backend config.hasManyThrough).ChatMessage).sync_status column to track sync health.retrieved, saved, deleted events are not overridden by other packages.auth != null for protected nodes).Carbon instances). Serialize/deserialize manually or use JSON fields.database_url and secret (for server-side validation).config/services.php as per README.use Mpociot\FirebaseSync\Traits\FirebaseSync; to target models.firebasePath() and firebaseRules() methods per model.Firebase::listenForModelChanges()) in a service provider.syncing:model.created) for debugging.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Firebase RTDB outage | App reads/writes fail silently. | Queue syncs; show stale data with warnings. |
| Network partition | Sync conflicts or duplicate data. | Implement vector clocks or timestamps. |
| Laravel event system crash | Syncs halt until restart. | Use persistent queues for critical syncs. |
| Schema mismatch (Laravel/Firebase) | Data corruption. | Pre-deploy schema validation scripts. |
| Rate limiting | Syncs throttle or fail. | Exponential backoff in retry logic. |
How can I help you explore Laravel packages today?