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

Add an artisan command to clear the database table #36

Closed lukasmalkmus closed 8 years ago

lukasmalkmus commented 8 years ago

Hi, this is a Feature request. I think it's useful to have a command to clear the database table, basically doing what Activity::cleanLog(); already does. This would be useful to clear the database table in develeopment environments or scripts. I'm not used to package creation, so it might take some time to step through that and submit a PR.

Feel free to close this issue if you don't support that idea.

freekmurze commented 8 years ago

I think that best option is to add it as an artisan command in your own app.

We are currently preparing a new major version of the activity log package. Cleaning the table will probably come right of the box in that version.