Not working dynamic database connection with new configuration files. #42875
Unanswered
manojkumar-net
asked this question in
Q&A
Replies: 1 comment
-
Now I understand the purge method. https://stackoverflow.com/questions/46775265/change-the-database-connection-dynamically-in-laravel |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Now Laravel Config::set is not working.
So I'm trying to connect my database dynamically with my new config(config/module_name/database.php) file but not worked.
due to this vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php line number: 163
$connections = $this->app['config']['database.connections'];
The database manager only checks inside the connection (config/database.php) array.
but I'm using a new config file config/module_name/database.php
I tried to write my own Class DatabaseManger, Interface Illuminate\Database\ConnectionResolverInterface with a class name alias not working because of the file location.
Beta Was this translation helpful? Give feedback.
All reactions