Framework: Model on api server return data from client table

Created on 27 Jul 2017  路  3Comments  路  Source: laravel/framework

  • Laravel Version: 5.4
  • PHP Version: 7.0
  • Database Driver & Version:

Description:

Steps To Reproduce:

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.

Sorry my bad English

Most helpful comment

You probably have wrong .env settings for your database in one of your applications. Anyway, this does not look like a Laravel bug. You may want to try StackOverflow, Laravel Forums or some other helper channel.

All 3 comments

You probably have wrong .env settings for your database in one of your applications. Anyway, this does not look like a Laravel bug. You may want to try StackOverflow, Laravel Forums or some other helper channel.

@deleugpn no, if wrong db name why my app still work?
And i check sure my env is right. :(

This repo is for bug tracking. Use the forums or slack channel for solving your issue

Was this page helpful?
0 / 5 - 0 ratings