spatie / activitylog

A very simple activity logger to monitor the users of your website or application
https://spatie.be/opensource/laravel
MIT License
582 stars 75 forks source link

Fetching a specific user logs ?? #45

Closed mikimaine closed 8 years ago

mikimaine commented 8 years ago

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 commented 8 years ago

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.