Using your own event storage model

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.