Skip to content

Handling different database connections #1357

Open
@Usman-Ejaz

Description

Describe the bug
I've 2 database connections, One for the main application and other one is for activity logs. Adding data to activity logs table is working fine, but when I'm retreiving data from acvitivut logs table, It is showing the error base table or view secondary_database.users not found. How can I override the causer relation to mention the database connection. I don't want to mention database connection name in each model.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions