spatie/laravel-event-sourcing
Event sourcing toolkit for Laravel: build aggregates, projectors, and reactors to store state changes as events. Ideal for audit trails, decisions based on history, and future reporting needs. Includes docs, examples, and an optional course.
The default model responsible for storing events is \Spatie\EventSourcing\Models\EloquentStoredEvent. If you want to add behaviour to that model you can create a class of your own that extends the EloquentStoredEvent model. You should put the class name of your model in the stored_event_model in the event-sourcing.php config file.
How can I help you explore Laravel packages today?