Skip to content

Run multiple websites using the same laravel installation while keeping tenant specific data separated for fully independant multi-domain setups.

License

Notifications You must be signed in to change notification settings

gavinhewitt/multi-tenant

 
 

Repository files navigation

Multi tenancy

Latest Stable Version License Build Status Code Coverage StyleCI SensioLabsInsight Awesome Laravel

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.

Chat or critical bug

Q&A

Please visit the FAQ in the documentation.

About

Run multiple websites using the same laravel installation while keeping tenant specific data separated for fully independant multi-domain setups.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 94.5%
  • HTML 4.9%
  • Shell 0.6%