I found a workaround for my own problem. As it looked like the dispatcher was not set in time inside my model i decided to set it myself.
I found that workaround quite dirty but it works. Again model events works fine on all other models in my app.
public static function boot(){
parent::boot();
User::setEventDispatcher(App()['events']);
User::updated(function($user){
//some code
});
}
did you found anything about this? i have the same problem, and the workaround worked perfectly
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community