Download the PHP package aldijakaria/laravel-activity-log without Composer
On this page you can find all versions of the php package aldijakaria/laravel-activity-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aldijakaria/laravel-activity-log
More information about aldijakaria/laravel-activity-log
Files in aldijakaria/laravel-activity-log
Package laravel-activity-log
Short Description a package to track user activity log
License MIT
Informations about the package laravel-activity-log
Laravel Activity Log
aldijakaria/laravel-activity-log is a Laravel package that allows you to log user activity in your Laravel application. It provides a middleware that can be added to your application's routes to track user activity.
Installation
You can install the package via Composer:
Migration
To migrate the package's database tables, use the following Artisan command:
This will create the necessary tables in your database for tracking user activity.
Usage
To use the package, add the TrackUserActivity middleware to your application's routes:
This middleware will automatically log the user's activity to the database.
Configuration
You can customize the package's behavior by publishing its configuration file. To publish the configuration file, run the following command:
This will create a config/activity-log.php file in your application. You can modify this file to customize the package's behavior.
By default, the package will use the TRACK_ACTIVITY_LOG environment variable to determine whether to enable or disable activity logging. If this variable is not set, the package will default to logging activity.
To disable activity logging, you can set the TRACK_ACTIVITY_LOG environment variable to false:
License
The package is open-sourced software licensed under the MIT license.
All versions of laravel-activity-log with dependencies
illuminate/database Version ^9|^10
illuminate/support Version ^9|^10
illuminate/config Version ^9|^10
illuminate/auth Version ^9|^10