You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is already possible, but is there some way to specify when to log a field? I have a model with 2 fields that I watch, but only depending on a related item meeting a condition. Ideally, in the getActivityLogOptions(), I'd be able to use something like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies if this is already possible, but is there some way to specify when to log a field? I have a model with 2 fields that I watch, but only depending on a related item meeting a condition. Ideally, in the getActivityLogOptions(), I'd be able to use something like this:
->logOnly(['price']) ->logOnlyWhen(fn ($contentModel) => $contentModel->property === $desiredValue)
Is this already possible somehow?
Beta Was this translation helpful? Give feedback.
All reactions