I have an application where there are two types of user currently, Admin and Vendor, and i want to log their activities like
\"TestAdmin\" viewed transaction \"T
I think you should set model function where it catches the action like after_save ,after update and all , if your model is Transaction for the logs table fields can be
after_save
after update
user_id, model_name, action, ip_address, session_id, params