Freek Van der Herten built a new package that we can use to log all users' activity easily: Laravel ActivityLog.

LARAVEL LOG

Here is how it looks:

activity log

This package is very easy to use.

You can retrieve all activity using:

Activity::all();

And you can log something just by typing:

activity()->log('log something');

You can find this package on Github:

https://github.com/spatie/laravel-activitylog?utm_source=learninglaravel.net

Or read the documentation at:

https://docs.spatie.be/laravel-activitylog/v1/introduction?utm_source=learninglaravel.net