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

v1.0.0 2025-12-27 10:29 UTC

This package is auto-updated.

Last update: 2025-12-27 10:38:15 UTC


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