This is the documentation for v3 but the latest version is v7. You can switch versions in the menu at the top. Check your current version with the following command:

composer show spatie/laravel-event-sourcing

Using your own event serializer

On this page

  1. Upgrading Events