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

allows for merging excludes into the config exclude list #967

Closed
wants to merge 2 commits into from

Conversation

gravitymedianet
Copy link

The auditExcludeMerge property overrides the auditExclude property if set, and will be merged into the config's audit.exclude property.

…lude

Allows for merging the model's audit exclude with the config default exclude list, instead of replacing it.
@@ -143,6 +143,10 @@ protected function resolveAuditExclusions()
*/
public function getAuditExclude(): array
{
if ($this->auditExcludeMerge ?? false) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a global option, so you could avoid adding this to each model

if ($this->auditExcludeMerge ?? Config::get('audit.exclude_merge')) {

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.

2 participants