A simple, lightweight activity logging package for Laravel 12.
- Log custom activities
- Polymorphic causer & subject
- Configurable table name
- Request IP & user-agent capture
- Fully tested with Orchestra Testbench
composer require shreyasarker/activitylogactivity()
->event('post.created')
->performedOn($post)
->causedBy(auth()->user())
->withProperties(['title' => $post->title])
->log('Post created');
php artisan vendor:publish --tag=activitylog-config
php artisan vendor:publish --tag=activitylog-migrations
php artisan migrate
Shreya Sarker 📧 shreya@codeboid.com