Deep dive into Laravel Chorus architecture, data flow, and synchronization mechanisms.
Harmonics Trait
Harmonics Table
Column | Purpose |
---|---|
table_name | Which model table changed |
record_id | Primary key of the changed record |
operation | Type of change (create/update/delete) |
data | JSON snapshot of the changed fields |
user_id | For user-scoped synchronization |
rejected | Boolean flag that is true if the user write is rejected |
rejected_reason | Reason for rejection (string) |
Write Actions
Laravel Reverb Integration
IndexedDB Storage
Chorus Hooks
WebSocket Connection
Optimistic Updates
syncFilter()
ensures users only receive authorized data