Skip to content
activitylog / v1

Customizing attributes being logged

Last updated:

To customize which attributes you want to log, you can use the $logAttributes static property on your model. For example to only log the name and slug:

use Javaabu\Activitylog\Traits\LogsActivity;

class Category extends Model {
    use LogsActivity;
    
    protected static array $logAttributes = ['name', 'slug'];
}
Documentation
All packages

javaabu/activitylog

Source on GitHub