Using your own event storage repository

The default repository responsible for storing events is \Spatie\EventSourcing\EloquentStoredEventRepository. If you want to use a different storage method, implement the \Spatie\EventSourcing\StoredEventRepository repository and add your custom functionality.