How to Use this Package with Multiple Database Connections? #2746
hilmihidyt
started this conversation in
General
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I plan to use this package with multiple database connections. Let's say I have two connections: master and default.
I want to use the users and roles tables from the "master" database connection and other tables such as permissions, model_has_roles, model_has_permissions and role_has_permissions from the default database connection.
I have created User and Role models like this:
User.php
Role.php
With the method above, I have successfully retrieved the users and roles data from the "master" database connection, but the permissions loaded are also from the "master" database connection.
I want the permissions data retrieved from the "default" database connection.
How can I load the permissions data from the "default" database connection?
Beta Was this translation helpful? Give feedback.
All reactions