laravel-eloquent-state-machines icon indicating copy to clipboard operation
laravel-eloquent-state-machines copied to clipboard

Add afterTransitionHooks for default state

Open nicolasbinet opened this issue 2 years ago • 0 comments

Summary

It would be great that the default support afterTransitionHooks. Event though the default state is linked to the model creating event.

Proposal

When a model is saved, its default state value, the afterTransitionHooks should be called and the hooked functions launched.

nicolasbinet avatar Sep 03 '22 15:09 nicolasbinet