Registry / logging / spatie-laravel-activitylog

spatie-laravel-activitylog

JSON →
library5.0.0phppackagistunverified

A very simple activity logger to monitor the users of your website or application

composer require spatie/laravel-activitylog
INSTALL
IMPORT
SIG · SPATIE-LARAVEL-ACT
S
spatie-laravel-activitylog
loggingphpv5.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogsActivity
use Spatie\Activitylog\Traits\LogsActivity;

Log changes to Eloquent model attributes automatically

use Spatie\Activitylog\Traits\LogsActivity; class Article extends Model { use LogsActivity; protected static $logAttributes = ['title', 'content']; }
Debug
Known issues
gotchaRequires database migration for activity_log table
fix
Run `php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations"` and migrate
affects: >=5.0.0
Upgrade
Version history
5.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
39
Amazon
1
Resources
spatie-laravel-activitylog — pip install spatie-laravel-activitylog · libregistry