What is tenancy?

Explains as easily as possible the uses of multi tenancy.

Multitenancy refers to a software architecture in which a single instance of a software runs on a server and serves multiple tenants.
source: wikipedia

Tenancy is used by developers to have one installation of an application serve multiple different tenants. Perfect example of multi tenant applications are Gmail, Google drive, Yahoo and many others. These all serve different content based on the user who logged in.

The tenancy meant in this package is different because we don't serve different content based on the user who logged in, but on the hostname that was requested. Let's say you have your application called amazingapp.com, users can sign up and get on a paid plan.

John Doe for instance wants his own amazing app and signs up. His own private working space is now available under john-doe.amazingapp.com. The identification of the tenant is done using that hostname.

❗️

Documentation moved

The documentation for version 5 (current stable) has moved to its own domain; laravel-tenancy.com.