title: Laravel 5 Application For More Than 1 Site
body: <p>I'm not sure how to phrase my title so I had done the best I could.</p>
  
  <p>I am putting together a Laravel 5 application to which multiple sites can pay to use for their company. This is an application that stores site related content in my database. So all data will be attached to a specific company (site).</p>
  
  <p>Lets say there are 3 sites that want to use my application.</p>
  
  <ul>
  <li>www.site1.com</li>
  <li>www.site2.com</li>
  <li>www.site3.com</li>
  </ul>
  
  <p>When a user goes to either of those sites and wants to access lets say the name of my project lets say:</p>
  
  <ul>
  <li>www.site1.com/projectname</li>
  <li>www.site2.com/projectname</li>
  <li>www.site3.com/projectname</li>
  </ul>
  
  <p>It would then be sent to my site where they would log into my system and it would be able to grab the url and match it verify that it is a company that uses my system and then it would be able to keep separate the users and data separated from the other companies who use it.</p>
  
  <p>Is this something that could be worked and if so any thoughts or ideas upon this.</p>
  
  <p>I watched a series on this type of thing from net.tutsplus.com <a href="https://code.tutsplus.com/courses/building-multitenant-apps-in-laravel" rel="nofollow">https://code.tutsplus.com/courses/building-multitenant-apps-in-laravel</a> and have the basic idea however the video doesn't cover the situation like mine would with the other sites url coming into play.</p>