Fetch activities by specific user #744
Answered
by
Gummibeer
mira-thakkar
asked this question in
Q&A
-
Hello! |
Beta Was this translation helpful? Give feedback.
Answered by
Gummibeer
Jul 2, 2020
Replies: 1 comment 1 reply
-
Hey, $user->actions; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mira-thakkar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
thanks for the kind words.
If I'm right your question is the title? If so you can use the
\Spatie\Activitylog\Traits\CausesActivity
trait in yourUser
model and after this access all activities by the user via theactions
relationship.