varunazad/laravel-user-activity-log is a Laravel package for simple laravel user activity logger.
It currently has 0 GitHub stars and 2 downloads on Packagist.
Install it with composer require varunazad/laravel-user-activity-log.
Discover more Laravel packages by varunazad
or browse all Laravel packages to compare alternatives.
Last updated
A simple and extensible Laravel package to log user and customer activities automatically—similar to Laravel Telescope but lightweight and focused on customer-level activity tracking.
config/user-activity-log.phpPublish the config and migration files:
php artisan vendor:publish --tag=user-activity-log-config
php artisan migrate
This will: Create config/user-activity-log.php Run the log table migration (user_activity_logs)
Use Trait like this:
use Varunazad\LaravelUserActivityLog\Traits\LogsActivity;
class User extends Authenticatable
{
use LogsActivity;
}
This will: The logging is automatic for each request made by an authenticated user. You can customize which actions to log in the config.
return [
'enabled' => true,
'log_guests' => false,
'log_methods' => ['GET', 'POST', 'PUT', 'DELETE'],
'excluded_routes' => ['login', 'logout'],
'user_model' => App\Models\User::class,
] ];
composer require varunazad/laravel-user-activity-log
---