title: different database and codebase on each subdomain in laravel
body: <p>Let's say that I have the following domain: <code>www.example.test</code></p>
  <p>Now, let's say that I have the following subdomains: <code>sub1.example.test</code> and <code>sub2.example.test</code></p>
  <p><strong>First question:</strong></p>
  <p>If I access <code>sub1.example.test</code>, then a codebase and database should be loaded, if I access <code>sub2.example.test</code>, then a <strong>DIFFERENT</strong> codebase and database should be loaded. How can I achieve this?</p>
  <p><strong>Second question:</strong></p>
  <p>If I access <strong>ANY</strong> subdomain (can be <code>sub1.example.test</code> or any subdomain), then <strong>THE SAME</strong> codebase should be loaded but different database. How can I achieve this?</p>
  <p>EDIT: The app does not have to pull data from multiple databases. Let's say that each customer has its subdomain and its database</p>