title: Laravel shared project codebase
body: <p>I've searched a few days now and I don't think I've found a relevant question anywhere.</p>
  
  <p>Is there a way to have multiple "sub-projects/sites" which use a shared codebase for their controllers and models, but have their own routes and views.</p>
  
  <p>For example there would be: public/site1 and public/site2 with their own /views, /routes folder and own .env but would both use the same /app code.</p>
  
  <p>These sub-projects would be all on the same server, so if there would be an other solution where there would be multiple applications which can link controllers and models from 1 main "core" application would be possible too.</p>
  
  <p>EDIT: I'm looking more if there is a way to autoload for example models and controllers from an other location on the server, that way whenever I update the "core" once it gets used on all sub-projects.</p>