spatie / laravel-activitylog

Log activity inside your Laravel app
https://docs.spatie.be/laravel-activitylog
MIT License
5.35k stars 714 forks source link

Bulk Update Logging Not working #1272

Closed nitika-makhija closed 5 months ago

nitika-makhija commented 9 months ago

I am using whereIn for bulk update with list of ids (array) and updating in the table. Something like as shown in below query:

$details = Model::whereIn('id',$ids)->update(['flag'=>1)]);

It is not logging in the activity_log table when updates are mage

when I use below query to update column one by one its working fine and logging the data in activity_log table

spatie-bot commented 5 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.