Jul 27, 2017
0
Level 1
Call model in API server but return db from client
I have 2 website, one is api server, one is client. On server i have simple code, example: DB::table('table_name')->get(). When i call request from client to server, server return data of table_name in client, not server. If i try to change table_name to other table exist in server but not in client, laravel return error "table not exist".
Update: I tried to call ENV on api server, that return ENV value from client. So confused!
Update 2: If i deploy 2 website to different hosting/server, that error resolved. But i so confuse for that
Please or to participate in this conversation.