Log Changes In Pivot Model #824
Unanswered
lyndonjohn
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys!
I've read the docs with regards to Logging on Pivot Models but I can't make it work. I've also searched google but still can't find a solution.
Here's my pivot table
role_user
:I've set an
id
as the primary key, as mentioned in the docs.This is my
RoleUser
model:I'm using
sync
method in assigning roles to a user.My goal is when I assign roles or update the roles of a user, it will be logged in
activity_log
.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions