search

Home  >  Q&A  >  body text

Laravel5.1, two local projects A and B. Project A uses POST to communicate with project B, and ORM is used to query data in B. Is the database connection information for project A?

During the passing process, the DB_DATABASE printed in the log in project B is the database name of project A.
The error reported by project B is:
Base table or view not found: 1146 Table 'Project A's database .Table name' doesn't exist
What is the situation?
Both use the default file cache

某草草某草草2777 days ago895

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 16:50:54

    How do you configure your two projects? There are .env files in the root directory of standard laravel projects, which contain database-related configuration information.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:50:54

    Project A’s URL: http://my.syxadv.com/
    Project B’s URL: http://my.yinshua.com/
    Project B only did one thing after receiving the request: return $_ENV ;
    This is using POSTMan:

    This is using CURL within the project:

    reply
    0
  • Cancelreply