Skip to main content

Prevent specific attributes being logged

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'];
}