ITADN

possible fix for double event registration in child models when calling events from parent trait use

#143Pull Requestsolis-eduardo 创建于 2025-05-06
S
solis-eduardocommented
Came across this issue when using `owen-it/laravel-auditing`. My `Model` class uses the `Auditable` trait, but the events are registered twice because `parentIsBooting` only accounts for traits used by the parent class itself, to solve this problem I created a static array for parent classes and added an alternative `isset` verification, similar to the preexisting `$parentBootMethods` logic.
合并状态:未合并 1 条评论