title: Laravel Multi-Tenant Multi-Database Multi-Domain - Problem with default route
body: <p>I'm studying about multi-tenant with Laravel and I'm having a problem with the routes. The main application works fine, however the main client domain (route / ) returns the 401 error configured in the middleware I created, but the other routes (login, register, etc) work perfectly.</p>
  
  <p>If I put a prefix on the main application routes, then the / client route works normally, but I need the main application not to have a prefix since I want to use it to create the service submission and hiring system.</p>
  
  <p>Anyone who has knowledge on this subject and can take a look at my code and help me find out why only the route is returning this error I will be very grateful.</p>
  
  <pre><code>If i access app.mydefaultapp  works
  If i access app.myclientapp doesn't works
  If i access app.myclientapp/login(or any other route) works
  </code></pre>
  
  <p><a href="https://pastebin.com/bHHux9sY" rel="nofollow noreferrer">https://pastebin.com/bHHux9sY</a></p>