w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Laravel - Change Database Connection for a specific URL?

I've made something similar using environments.

Add a new rule when detecting the environment to parse the URL and change it to the new environment. Then you can add a directory for the new environment where you set up the new database, base URL, etc.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.