jamesmills / laravel-multitenancy

Make your Laravel app usable by multiple tenants

Home Page:https://docs.spatie.be/laravel-multitenancy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DO NOT USE YET, PACKAGE IN DEVELOPMENT

Make your Laravel app tenant aware

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This package provides a lightweight solution for making a Laravel app tenant aware. It can determine which tenant should be the current tenant for the request. It also allows you to define what should happen when switching the current tenant to another one.

It works for multitenancy projects that need to use one or multiple databases.

Before starting with the package, we highly recommend first watching this talk by Tom Schlick on multitenancy strategies.

The package contains a lot of niceties such as making queued jobs tenant aware, migrating all tenant databases in one go, an easy way to set a connection on a model, and much more.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Documentation

You can find the entire documentation for this package on our documentation site.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.

Credits

The code of this package is based on the code shown in the Multitenancy in Laravel series by Mohamed Said

Alternatives

This package aims to be a lightweight solution to make your app multitenancy aware. If you need more features, take a look at hyn/multi-tenant.

Another option you could look at it is stancl/tenancy.

License

The MIT License (MIT). Please see License File for more information.

About

Make your Laravel app usable by multiple tenants

https://docs.spatie.be/laravel-multitenancy

License:MIT License


Languages

Language:PHP 100.0%