spatie / laravel-event-projector

Event sourcing for Artisans 📽

Home Page:https://docs.spatie.be/laravel-event-projector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow aliases for stored event classes instead of persisting FQCN to DB

bwrice opened this issue · comments

Similar to how you can set an alias with Relation::morphMap() when using polymorphic eloquent relationships, it would be nice to be able to do something similar for how 'event_class' is saved in the stored events table. This way you could change namespaces and folder structure without affecting previously saved events.

@riasvdv wow that was incredibly fast. Perfect! Thank you!