How to retrieve all activities for the current user? #946
-
I followed the docs and implemented this package to my app. However, let say I have a I don't see any way to retrieve it on the docs, do I need to customize the table and add a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
There's no https://spatie.be/docs/laravel-activitylog/v4/basic-usage/logging-activity#setting-a-causer |
Beta Was this translation helpful? Give feedback.
There's no
user_id
but acauser
which is for the user or any other entity doing activities.https://spatie.be/docs/laravel-activitylog/v4/basic-usage/logging-activity#setting-a-causer
https://spatie.be/docs/laravel-activitylog/v4/advanced-usage/logging-model-events#using-the-causesactivity-trait
https://spatie.be/docs/laravel-activitylog/v4/advanced-usage/define-causer-for-runtime
https://spatie.be/docs/laravel-activitylog/v4/api/causer-resolver