How to save audit logs with related values

Hello. I have a question: I want to save audit logs in db. When i save model A (a field from model A(integer) have relation “belongs to model B (string)” ) i want to save in audit log related value from model B (string) instead of model A (integer).How can i do that ? I have a code which is saving all values from model A (using $model->getAttributes()), so the only problem is that i want to save string (from model B) instead integer (from model A)
Sorry for my english :slight_smile: