spatie / laravel-event-sourcing

The easiest way to get started with event sourcing in Laravel
https://docs.spatie.be/laravel-event-sourcing
MIT License
768 stars 164 forks source link

Add config to enforce every event has an alias. #461

Closed thettler closed 6 months ago

thettler commented 6 months ago

Like with Relation::enforceMorphMap i added a config option to always throw an exception if an event without alias is persisted.

Thank you for the great package if you have questions or change requests I am happy to update the PR.

freekmurze commented 6 months ago

Thanks for this high quality PR! 👍