elf-r / activity_track
Track activity for Laravel
1.0.3
2021-01-07 12:58 UTC
Requires
- php: >=7.0
- illuminate/auth: ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/container: ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/contracts: ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/database: ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Requires (Dev)
- phpunit/phpunit: ^5.7|6.2|^7.0
This package is auto-updated.
Last update: 2024-05-07 20:35:47 UTC
README
Track activity for Laravel
Setup
Ensure you have composer installed, then run the following command:
composer require elf-r/activity_track
Next, you should publish package configs and migration by running command php artisan vendor:publish
After publishing, add ElfR\ActivityTrack\Traits\HasActivityTracking.php trait to your App\Models\User.php model. This trait will provide a few helper methods to your model which allow you to inspect the tracked model activity.
Additional
By default package registers activity tracking on successfull or failed login