Event Sourcing in Laravel
summary
A runnable demo shows an app called Larabank built with the laravel event sourcing package, storing every change in a stored events table and rebuilding views via projectors; a replay command reconstructs the accounts projection and a later-added transaction-count projector without changing data. Reactors fire only on original events (replays skip side effects). Aggregates reconstitute from past events and enforce rules — e.g. three overdraw attempts below -5000 persist a loan-proposed event and trigger a mail.
AI-written summary · about
chapters (9)
- 0:00Start
- 1:39Event Sourcing
- 4:49When Would You Need an Event Sourced Application with Projectors
- 6:11Larval Event Sourcing
- 6:35Demo
- 8:53Stored Events Table
- 15:27Reactors
- 23:12Phpstorm
- 23:36Stored Events








