quick
quick copied to clipboard
Accept map of event to custom interceptor per entity
This would accept a map of Quick lifecycle events to a string or array of string custom interception points. Quick would announce each custom interception point during its corresponding lifecycle event. This allows for nicer interceptors as they don’t have to listen to the generic quickPostInsert
event and then check the model name or mapping but can just listen to onOrderCreated
, for example.
Prior art: https://laravel.com/docs/7.x/eloquent#events