Download the PHP package yared/laravel-activity-tracker without Composer
On this page you can find all versions of the php package yared/laravel-activity-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yared/laravel-activity-tracker
More information about yared/laravel-activity-tracker
Files in yared/laravel-activity-tracker
Download yared/laravel-activity-tracker
More information about yared/laravel-activity-tracker
Files in yared/laravel-activity-tracker
Vendor yared
Package laravel-activity-tracker
Short Description Advanced activity logging for Laravel with IP, browser, location, and model change tracking
License MIT
Package laravel-activity-tracker
Short Description Advanced activity logging for Laravel with IP, browser, location, and model change tracking
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-activity-tracker
Yared Laravel Activity Tracker
Advanced activity logging for Laravel with IP, browser, location, device detection, and automatic model change tracking.
Features
- Rich activity data — IP, browser, device, URL, location
- Automatic model logging — Track created, updated, deleted with
LogsActivitytrait - Model change detection — Log what changed (e.g. "Price: 100 → 120")
- Geolocation — City and country from IP (via ip-api.com)
- Activity timeline — Query and display admin activity feed
- Log cleanup —
php artisan activity:cleanto remove old logs - Configurable — Custom table name, location API, cleanup days
Installation
Publish config and run migrations:
Usage
Manual Tracking
Automatic Model Logging
Add the trait to any model:
Now every create, update, and delete is logged automatically. Updates include what changed:
Activity Timeline
Clean Old Logs
Example Output
Configuration
Edit config/activity.php:
| Key | Description |
|---|---|
table |
Database table name |
location_enabled |
Fetch location from IP |
location_api_url |
IP geolocation API |
cleanup_days |
Default days for activity:clean (0 = disabled) |
track_requests |
Log every request when using middleware |
Middleware (Optional)
To log every API request, register the middleware:
Then enable in config: 'track_requests' => true and apply to routes.
License
MIT
All versions of laravel-activity-tracker with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
The package yared/laravel-activity-tracker contains the following files
Loading the files please wait ...