So came laravel-transactional-events package to solve this.
later, Laravel 8.17 introduced a new method DB::afterCommit that allows one to achieve the same of this package. Yet, it lacks transaction-aware behavior support for Eloquent events.
And i wonder, did Laravel 10 solved this issue? i'm aware of ShouldHandleEventsAfterCommit which takes care of the observers, however, how about the model events that is listened to from within the boot method? will those respect it as well? How about any other events? and not queued events? submitted by /u/Independent-Desk-407
[link] [comments]
0 comments:
Post a Comment
Thanks