Last Updated on
Laravel is a wonderful framework, however the default settings make it difficult to use for more than one domain at the same time.
A multi tenant site is one that uses the same codebase to serve data to multiple clients. A very popular example of this is slack.
A multi tenant site will usually require that each tenant accesses the site from a unique url, and this causes problems because laravel by default, does not permit this behavior.
APP_URLset in the
.envfile is used to generate the routes, the asset urls, and many other things and by default, there is no way to set multiple urls.
To allow us to use multiple domains, we will have do a some customisations.
Continue reading: How to build a multi tenant site with Laravel ― Scotch