Skip to content
activitylog / v1

Logging model events

Last updated:

To log model events, simply add the LogsActivity trait to your model.

use Javaabu\Activitylog\Traits\LogsActivity;

class Category extends Model {
    use LogsActivity;
}

By default, this trait is configured to log all model attributes. It will not submit empty logs and a log is created only if an attribute value changes.

Documentation
All packages

javaabu/activitylog

Source on GitHub