Run multiple websites using the same laravel installation while keeping tenant specific data separated for fully independant multi-domain setups.
PHP HTML Shell
Latest commit 455650f Dec 20, 2016 @Kiniamaro Kiniamaro committed with Luceos more ubuntu nginx and fpm path fixes (#182)
* change php-fpm paths to match ubuntu paths

* fix paths for nginx and fpm config to match ubuntu structure

readme.md

Multi tenancy

GitHub license Latest Stable Version Build Status Code Coverage StyleCI SensioLabsInsight Awesome Laravel Total Downloads Donate

This package allows for multi tenancy websites on one installation of Laravel.


The goals for this and its related packages are:

  • Unobtrusive multi tenancy for Laravel.
  • Provide proper insight into tenants and webserver.
  • Powerful, but flexible for developers, use it the way you want.

Reading material:

What is multi tenancy

Referring to wikipedia;

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

Multi tenancy how?

In its most abstract sense you can use this package to manage multiple websites with only one application installation.

  • Multiple websites running on one code base.
  • Multiple hostnames configured per website.

Each website has its own folder on disk, allowing:

  • seperation of routes, templates, translations etc
  • custom files (media, themes and packages)

Also each website has its own database, this ensures that in no way one website can access data from another website. The distinction also gives proper division of responsibilities to the system (global) and tenant (local) databases.

For more information visit the documentation.

Example tenant website & demo

One website running on the multi tenant installation of hyn.me is dummy.hyn.me, you can review the code on github.com/hyn/dummy-tenant-website.

Installation, configuration

Chat or critical bug

Q&A

Please visit the FAQ in the documentation.