We have a multi-tenancy setup with multiple databases for each tenant and a main shared one. I would like to be able to do simple logging on a tenant database connection (not the main).
I would like to do a simple activity()->log('Look mum, I logged something'); that would go to a tenant database. Is there any clean way of setting the connection?
We have a multi-tenancy setup with multiple databases for each tenant and a main shared one. I would like to be able to do simple logging on a tenant database connection (not the main).
I read your comment here: https://github.com/spatie/activitylog/issues/42 but that will only work for model event logging.
I would like to do a simple
activity()->log('Look mum, I logged something');
that would go to a tenant database. Is there any clean way of setting the connection?