This is the documentation for
v3 but the latest version is
v7
.
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show spatie/laravel-event-sourcing
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.