I am making two projects. 1st project offer functionality and 2nd one uses them.
I have defined api route in 1st as
Route::get('css', function(){
return env('APP_NAME');
});
When i trigger this route it shows db1
. But when i trigger this api route from 2nd project as
Route::get('db', function () {
return file_get_contents('http://mantisui.test/api/css');
});
It shows db2
instead of db1. I am doing this in xampp making two separate folders with different port and virtual hosts.
1