Answer the question
In order to leave comments, you need to log in
Why doesn't Laravel Observer fire when changing model in console command?
I have an Observer that I use to log model related changes. When working via the web, everything works fine, but when the model is changed in the Observer console command, it does not work.
Model::observe(ModelObserver::class) is included in the boot() method of the AppServiceProvider.
Maybe it needs to be written somewhere else?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question