Application Activities#

Sometimes its handy to know what your users are up to when they browse your site or application. The Activity kit gives you everything you need to track your users and their every action. The middleware does most of it for you, but your welcome to customize it to fit your needs.

Setup#

php artisan laracogs:activity

Add to your config/app.php the following:

App\Providers\ActivityServiceProvider::class,

Facades#

Provides the following tool for in app features:

Activity::log($description);
Activity::getByUser($userId);

Helper#

activity($description) // will log the activity