Let’s Build A SaaS Application From Scratch Part 3 — Configuring hyn/multi-tenant

Bertrand Son Kintanar
1 min readMay 4, 2020

--

Work in progress. Pages may be modified every now and then.

Parts 1 | 2 | 3

Installs Tenancy Package

What we did earlier was to pull the hyn/multi-tenant package from its repository to our codebase. We’ll now run an artisan command to install the package.

php artisan tenancy:install

By running this command it will configure the system database.

php artisan tenancy:install

At this point if everything has been configured correctly, you can now visit any subdomain like: test.domain.localhost and it should show you the generic 404 page from Laravel. This means that the hyn/multi-tenant package has been installed correctly.

https://test.church.localhost

--

--