shreyasarker / activitylog
Simple activity logging package for Laravel 12
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/shreyasarker/activitylog
Requires
- php: ^8.2
- illuminate/database: ^12.0
- illuminate/http: ^12.0
- illuminate/support: ^12.0
Requires (Dev)
- orchestra/testbench: ^10.0
- phpunit/phpunit: ^11.0
README
A simple, lightweight activity logging package for Laravel 12.
Features
- Log custom activities
- Polymorphic causer & subject
- Configurable table name
- Request IP & user-agent capture
- Fully tested with Orchestra Testbench
Installation
composer require shreyasarker/activitylog
Usage
activity()
->event('post.created')
->performedOn($post)
->causedBy(auth()->user())
->withProperties(['title' => $post->title])
->log('Post created');
Configuration
php artisan vendor:publish --tag=activitylog-config
php artisan vendor:publish --tag=activitylog-migrations
php artisan migrate
Author
Shreya Sarker 📧 shreya@codeboid.com