Skip to content

Disable or remove the standard UserResolver from being tracked to the audits #837

Answered by parallels999
RastaTux asked this question in Q&A
Discussion options

You must be logged in to vote

Try using transformAudit to remove user_id, and user_model from insert data array

public function transformAudit(array $data): array
{
return $data;
}

 public function transformAudit(array $data): array 
 { 
     unset($data['user_id']);
     unset($data['user_model']);
     return $data; 
 } 

Still, you might need more changes for other features.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RastaTux
Comment options

Answer selected by RastaTux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #836 on June 05, 2023 19:40.