Download the PHP package dwi-wijonarko/laravel-activity-logger without Composer
On this page you can find all versions of the php package dwi-wijonarko/laravel-activity-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dwi-wijonarko/laravel-activity-logger
More information about dwi-wijonarko/laravel-activity-logger
Files in dwi-wijonarko/laravel-activity-logger
Package laravel-activity-logger
Short Description Simple Laravel package for logging user activities with automatic tracking
License MIT
Homepage https://github.com/dwi-wijonarko/laravel-activity-logger
Informations about the package laravel-activity-logger
Laravel Activity Logger
A simple and elegant Laravel package for logging user activities. Track all user actions including create, update, and delete operations with automatic logging.
Features
- 🚀 Auto Logging: Automatically log model events using a simple trait
- 📝 Manual Logging: Fluent interface for custom activity logging
- 🔍 Query Filters: Easy querying by user, model, date range, etc.
- 💾 Detailed Tracking: Stores old and new values, IP address, user agent
- ⚙️ Configurable: Customize table name, ignored attributes, retention period
- 🎯 Laravel 9-12 Support: Compatible with latest Laravel versions
Installation
Install via Composer:
Publish the config file:
Run migrations:
Usage
Automatic Logging with Trait
Add the Loggable trait to any model you want to track:
Now all created, updated, and deleted events will be automatically logged!
Manual Logging
Use the activity() helper for custom logs:
Querying Activity Logs
Accessing Log Data
Relationship Usage
Configuration
Edit config/activity-logger.php:
Examples
Blog Post Management
Custom Admin Actions
User Activity Timeline
Testing
Changelog
Please see CHANGELOG for more information on recent changes.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
- Dwi Wijonarko
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-activity-logger with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0