Posted on Leave a comment

How to build a multi tenant site with Laravel ― Scotch

laravel multi-tenant site

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.

The APP_URL set in the .env file 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


Also published on Medium.

Spread the love
Posted on Leave a comment

There are no comments

Leave a comment... please :-)

Your email address will not be published. Required fields are marked *