Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log attributes wildcard #259

Merged
merged 1 commit into from Oct 16, 2017
Merged

Conversation

dam1r89
Copy link
Contributor

@dam1r89 dam1r89 commented Sep 8, 2017

In CRUD heavy application I just want to log any change on model without thinking too much.

This pr enables wildcard '*' when defining loggable attributes. What it does it is passing all keys that are defined on $model->attributes array. And it keeps any additional defined loggable attributes which is useful in case of relation attributes - for example ['*', 'user.name'].

@freekmurze
Copy link
Member

Could you rebase this against the current master?

@dam1r89 dam1r89 force-pushed the log-attributes-wildcard branch 2 times, most recently from d498d06 to 5322563 Compare September 9, 2017 19:18
@freekmurze freekmurze merged commit c6a0dc1 into spatie:master Oct 16, 2017
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants