Allow aliases for stored event classes instead of persisting FQCN to DB
bwrice opened this issue · comments
Brian Rice commented
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.
Rias commented
@bwrice you can find the documentation here https://docs.spatie.be/laravel-event-projector/v2/advanced-usage/using-aliases-for-stored-event-classes/
Brian Rice commented
@riasvdv wow that was incredibly fast. Perfect! Thank you!