-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Currently, all events in a model's logged array are logged. We might want to prevent actually saving the activity based on the data in the activity.
For example, if a model Article is updated and (only) the published_at is changed. We might want to drop that activity in favour of the ArticlePublished or eloquent.published: 'App\Models\Article' event. Currently there only exist implementations to discard an event based on the event name in LogsActivity::shouldLogEvent($event) and to transform the activity data (but not discard) in LogsActivity::transformActivity($activity).
Any ideas on how to improve this behaviour are very much welcomed.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed