Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.

Fetching a specific user logs ?? #45

Closed
mikimaine opened this issue Jun 15, 2016 · 1 comment
Closed

Fetching a specific user logs ?? #45

mikimaine opened this issue Jun 15, 2016 · 1 comment

Comments

@mikimaine
Copy link

Hi, thanks for this grate package.

my question is how can i retrieve activity logs for the currently logged in user only.

should i just create a new model and repository for the table activity_log and work the old way or is there a way in your package to get logs of Auth::user().

And also related question for removing all logs from the database because this
Activity::cleanLog();
is not removing them should i go with my own repository solution ?

Thanks!

@freekmurze
Copy link
Member

The package provides a Spatie\Activitylog\Models\Activity model. This class is just another Eloquent model so you can perform where's and delete's on it like there's no tomorrow.

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

No branches or pull requests

2 participants