Skip to content
activitylog / v1

Prevent specific attributes being logged

Last updated:

To prevent certain attributes ever being logged, you can use the $logExceptAttributes static property on your model. For example to never log the password:

use Javaabu\Activitylog\Traits\LogsActivity;

class User extends Model {
    use LogsActivity;
    
    protected static array $logExceptAttributes = ['password'];
}
Documentation
All packages

javaabu/activitylog

Source on GitHub