jeudi 1 juin 2017

Laravel changed configured database name

I have two laravel api projects,

1-used for mysql database and another used for mssql database

I called mysql project api service to get orders and some data related with order are exists in mssql and I have written a call of curl in 1st project to get from another information related with order from mssql project api (mssql service api url = localhost/laravelmssql/api/getorderInfo/OrderID)

mssql service call working fine from browser

but when I call it from 1st project with curl its getting wrong database which is configured in 1st project

Note: This is adding correct database connection info in $_SERVER when I call it from browser

[DB_PORT] => 1433
[DB_DATABASE] => MSSQL DATABASE
[DB_USERNAME] => MSSQL_USERNAME
[DB_PASSWORD] => MSSQL_PASSWORD

but when I call it from curl the $_SERVER don't have these above variables



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire