Skip to content

A simple, lightweight activity logging package for Laravel 12.

Notifications You must be signed in to change notification settings

shreyasarker/activitylog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Activity Log for Laravel

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

About

A simple, lightweight activity logging package for Laravel 12.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages