Log username in a table on a webpage #898
Answered
by
Gummibeer
JR-Vermeer
asked this question in
Q&A
-
Hello, I have a table on my webpage where I log the activities from users. But I have a question now. How do I log the name of the person who changed something? I unfortunately couldn't figure it out with the docs. Kind Regards, |
Beta Was this translation helpful? Give feedback.
Answered by
Gummibeer
May 31, 2021
Replies: 1 comment 4 replies
-
Hey, you can use the $activities = $poster->activities->load('causer');
foreach($activities as $activity) {
echo $activity->causer->name;
} |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Gummibeer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, you can use the
causer
relationship.