Hi !
is it possible to disable logging on demand with something like that :
User::withoutActivityLog->update($request->all());
It will be useful for example if I have somes scheduled tasks that edit somes fields in user and I don't want to log theses changes in activity_log.
Regards.
I assume your logging model changes. You can only specify on which events you want that. There's currently no other way of disabling/enabling that on the fly.
https://docs.spatie.be/laravel-activitylog/v1/advanced-usage/logging-model-events#customizing-the-events-being-logged
This feature may be coming to the package soon 馃槃
PR: #226
Hi, what is the minimum version of Laravel to be compatible with this change? I have 5.3 here (very old, I know).
@Quix0r I'm in holiday atm but based on the corresponding merge commit https://github.com/spatie/laravel-activitylog/blob/ba734a98bfcc38fc4766d784bfedfd55fa379555/composer.json it's everything from laravel 5.1
Most helpful comment
@Quix0r I'm in holiday atm but based on the corresponding merge commit https://github.com/spatie/laravel-activitylog/blob/ba734a98bfcc38fc4766d784bfedfd55fa379555/composer.json it's everything from laravel 5.1