Support the ongoing development of Laravel.io →
Configuration Requests Database
Last updated 1 year ago.
0

is there two different codebases or one for both?

if one, then you need to specify the db you use whilst making queries or set a default one..

i cant see why else it would be using same

0

There are two different code bases. When I test the browser http: //api.local/test it connects to the database that is configured at http://api.local. But when I test at http://site.local with a get_file_contents('http://api.local/test') it connects to the database set in http: //site.local

shez1983 said:

is there two different codebases or one for both?

if one, then you need to specify the db you use whilst making queries or set a default one..

i cant see why else it would be using same

Last updated 7 years ago.
0

apparently was a caching problem, i can solve with the command:

$ php artisan config:cache

0

Sign in to participate in this thread!

Eventy

Your banner here too?

adonaicruz adonaicruz Joined 29 May 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.