How to get additional data during database hooks
I have a custom table
I want to populate this, during database after user create hook. How would I know which user role is signing up? Do I pass a custom header or is there a more clean way?
user_roles (user_id, role text) where role might vendor | customerI want to populate this, during database after user create hook. How would I know which user role is signing up? Do I pass a custom header or is there a more clean way?