spatie/laravel-activitylog
Log user and model activity in Laravel with a simple API. Automatically record Eloquent model events, link actions to subjects and causers, store custom properties, and query a dedicated activity_log table for auditing and history.
Adopt if:
Look elsewhere if:
laravel-log-viewer).Log facade.*"This package lets us automatically track every critical action in our app—like a digital breadcrumb trail—without writing custom logging code. It’s like adding a ‘black box recorder’ to our software, which is invaluable for:
*"This is a Swiss Army knife for audit logging in Laravel. Here’s why it’s a no-brainer:
activity()->log('User exported report')).fillable fields, or only dirty changes) via getActivitylogOptions().beforeLogging callbacks.admin-actions, user-activity) and integrates with Laravel’s ecosystem.*"This package gives us structured, queryable activity data out of the box. Unlike raw logs, it:
causer, subject, properties).How can I help you explore Laravel packages today?