Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multitenancy + Activity Log #24

Closed
dambridge opened this issue May 27, 2020 · 2 comments
Closed

Multitenancy + Activity Log #24

dambridge opened this issue May 27, 2020 · 2 comments

Comments

@dambridge
Copy link
Sponsor

dambridge commented May 27, 2020

Can't seem to get the connection working with Activity Log. I've tried both setting 'database_connection' => 'tenant', in config.activitylog, as well as config(['activitylog.database_connection' => 'tenant']); in a tenant middleware. I continue to get this error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tenant_d62db5ba-bcaa-498f-a8eb-b8af00b8e119.activity_log' doesn't exist (SQL: select count(*) as aggregate from `activity_log`) 
@freekmurze
Copy link
Member

Could you dump the database config right before that exception is thrown?

@dambridge
Copy link
Sponsor Author

@freekmurze Hey there, determined it was because I was not properly authenticated. All good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants