title: Two Laravel applications on the same server conflicting with one another
body: <p>I have 2 Laravel applications running on the same server. The server is Apache 2.4 and I have vhosts set up to serve each application on a different domain.</p>
  
  <p>The first application is an API and it's .env file is set up like this:</p>
  
  <pre><code>APP_ENV=production
  APP_KEY=YYYYYYYYYYYYYYYYYY
  APP_DEBUG=false
  APP_LOG_LEVEL=debug
  APP_URL=https://notify.mysite.com
  APP_DOMAIN=notify.mysite.com
  
  
  DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=notify
  DB_USERNAME=YYYYYYYYYYYYYYYYYY
  DB_PASSWORD=YYYYYYYYYYYYYYYYYY
  
  BROADCAST_DRIVER=log
  CACHE_DRIVER=file
  SESSION_DRIVER=file
  QUEUE_DRIVER=sync
  </code></pre>
  
  <p>The second application is a UI that among other things, utilizes the API from the first application. Its .env file is set up like this:</p>
  
  <pre><code>APP_ENV=local
  APP_KEY=XXXXXXXXXXXXXX
  APP_DEBUG=true
  APP_LOG_LEVEL=debug
  APP_URL=https://asapps.mysite.com
  APP_DOMAIN=asapps.mysite.com
  APP_VERSION=1
  
  
  DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=asapps
  DB_NOTIFY_DATABASE=notify
  DB_FLIGHT_DATABASE=flights
  DB_USERNAME=XXXXXXXXXXXXXX
  DB_PASSWORD=XXXXXXXXXXXXXX
  
  BROADCAST_DRIVER=log
  CACHE_DRIVER=file
  SESSION_DRIVER=file
  QUEUE_DRIVER=sync
  </code></pre>
  
  <p>I can send messages to my API from my Swagger editor, from Postman, and from other servers and everything works as expected.</p>
  
  <p>My second application by itself also works as expected.</p>
  
  <p>However, if my second application sends a request to the API, the API application throws this error: </p>
  
  <blockquote>
    <p>exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'asapps.preprocessor_config' doesn't exist' 
    in C:\notify\vendor\laravel\framework\src\Illuminate\Database\Connection.php:332</p>
  </blockquote>
  
  <p>WTH?</p>
  
  <p>The database for the API is set to <strong>DB_DATABASE=notify</strong> and it definitely does properly use that connection when I send messages from other servers. So why the heck is it trying to use the second application's database 
   connection when I call the API from that app??? Its almost like it's caching the DB connection and trying to keep using that same one.... How do I stop that?</p>
  
  <blockquote>
    <p>Table 'asapps.preprocessor_config' doesn't exist'</p>
  </blockquote>