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 repository responsible for storing events is \Spatie\EventSourcing\StoredEvents\Repositories\EloquentStoredEventRepository
. If you want to use a different storage method, implement the \Spatie\EventSourcing\StoredEvents\Repositories\StoredEventRepository
repository and add your custom functionality.