Level 2
My Solution
I just used the alternative to this by using saved method instead of updated. in that case it will be triggered even if the new data is same as db.
Summer Sale! All accounts are 50% off this week.
I am using Lumen with "laravel/lumen-framework": "^8.0" in composer.
I just found my observer's updated event is not triggering if the new $data with update method $model->update($data) has same values as old one in the db. But, if the $data has even a one single column which is not same as old one then only the event triggers successfully.
is this true.. if yes how can i force to fire the event.
This is how i update the data. the data comes from frontend.
$vendorBill = VendorBill::findOrFail($id);
$vendorBill->update($data);
Please or to participate in this conversation.