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

screenshots #7

Closed syrakozz closed 9 years ago

syrakozz commented 9 years ago

could you plz add a screenshots for the project, or link for the demo like pimpmylog project

freekmurze commented 9 years ago

Hi,

if you follow the instructions of the README you can setup a demo yourself. Reading through the README should give you a good idea of the functionality this package provides.

kykiskie commented 8 years ago

hi sorry for this , i can use the Activity::log() just fine.

but im lost at log model events, can you please provide more literal examples.

lets say that i want to log the login action, how to do this ?

for now, i'm using Activity:log() in every function that i want to log, but it seems tiring, and log model events is far cleaner if i'm able to implement it.

cheers

freekmurze commented 8 years ago

If you want to log a user logging in that you put Activity::log() somewhere in the controller that performs the login.

You can hook into model events by letting models implement LogsActivityInterface. See the readme for more details.