Because Laravel loads configuration once on the bootstrap.
You can change a behavior of the app loaders, but there are easier ways to change db connection in Controller.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community