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?
某草草
某草草 2017-05-16 16:48:54
0
2
794

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

某草草
某草草

reply all (2)
巴扎黑

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.

    Ty80

    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:

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!