Maybe you could add a ->touch(), which should at least update the updated_at timestamp and therefore trigger the updated event? Or even include this field it in the array of the update function?
Eloquent updated event do not fire on update
Hi,
I'm not sure, perhaps this is expected behavior, but the following occurs:
If i update a model with Model::find(1)->update(['title' => 'old title']); updated event is fired only in case the title was actually changed. Meaning if it was 'old title' before, then event is not fired.
Is there a way to force this event to be fired each time i do update()?
Edit:
I can use saved event. That fill fire even if record was not changed... Still i think it will fire in case of the creation, which i do not need!
And yes. As i have created event as well, it will first create new record and then update it. Is there a way to fix this?
Please or to participate in this conversation.