problem description
the project requires programs to connect to multiple databases (about 30, with the same username and password, but different library names). How to operate gracefully in Laravel?
reference
I have looked up the article Laravel model implementing multi-database query or multi-table mapping , and defined all database links in the config/databese.php
configuration, but there are so many libraries that it doesn"t feel very reliable. Can I change the name of the connected database in the model?