Handling different database connections #1356
Unanswered
Usman-Ejaz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've installed this (activity-log) package. I've changed the database connection for this package's in secondary database.
My secondary database is working fine in terms of adding data to it. But when I'm retrieving data from activity-log table, It is showing that secondary_database.users not found. It is a database connection issue as it is looking for users table in secondary table.
Now my real question is that how can i modify the morph causer relation to always get the user from primary database. I want to mention the database connection name in each model.
Beta Was this translation helpful? Give feedback.
All reactions