spatie/laravel-activitylog
Log user and model activity in Laravel with a simple API. Automatically record Eloquent events, track subjects and causers, attach custom properties, and query everything via the Activity model. Stores logs in the activity_log table.
spatie/laravel-activitylog makes it simple to record user and system actions in your Laravel app. Log custom messages or automatically track Eloquent model events, with everything stored in the activity_log table and accessible via the Spatie\Activitylog\Models\Activity model.
Capture rich context—what happened, to which model, by whom, and with which metadata—then query it like any other Eloquent resource.
activity() APIHow can I help you explore Laravel packages today?