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

question: has and belongs to many log/view in single model audit log #657

Closed
blinkinglight opened this issue Jul 12, 2021 · 2 comments
Closed
Labels

Comments

@blinkinglight
Copy link

sorry for weird question, but cant find answer.

if i have "Post" model and i have post_tags [ post_id, tag_id ] with "Tag" model. how to track relations/tags in Main model ?

lets say i want to see what tags was added to Post and what removed.

thanks.

@a21ns1g4ts
Copy link

I have the same issue.

MortenDHansen added a commit that referenced this issue Feb 8, 2022
 + option to supply custom data for new and old on the auditable. This enables registering actions that do not occur through the eloquent events. For example updates on pivot tables
 + Closes issues #657 #636 #628 #597 #591 #506 #496
@MortenDHansen
Copy link
Contributor

v13 has support for a way to solve this. Please see: https://www.laravel-auditing.com/docs/13.0/audit-custom

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

No branches or pull requests

3 participants