Its called multi-tenant, here is a similar question
If you only change the database, you can set up the database according to the subdomain on the bootstrap file
Its called multi-tenant, here is a similar question
If you only change the database, you can set up the database according to the subdomain on the bootstrap file