GithubHelp home page GithubHelp logo

peterbrinck / laravel-multitenancy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spatie/laravel-multitenancy

1.0 1.0 0.0 317 KB

Make your Laravel app usable by multiple tenants

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

License: MIT License

PHP 100.00%

laravel-multitenancy's Introduction

An unopinionated multitenancy package for Laravel apps

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This package can make a Laravel app tenant aware. The philosophy of this package is that it should only provide the bare essentials to enable multitenancy.

The package 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, making an artisan command run for each tenant, an easy way to set a connection on a model, and much more.

Are you a visual learner? Then watch this video that covers how you can use laravel-multitenancy and how it works under the hood.

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

You'll need to create the following 3 local MySql databases to be able to run the test suite:

  • laravel_mt_landlord
  • laravel_mt_tenant_1
  • laravel_mt_tenant_2

You can run the package's tests:

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 [email protected] 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

License

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

laravel-multitenancy's People

Contributors

3assy2018 avatar adrianmrn avatar alexvanderbist avatar anthonypeck avatar benrolfe avatar bhushan avatar bimsh avatar binaryk avatar bkintanar avatar braunson avatar bryanjamesmiller avatar caddydz avatar casperbe avatar claudsonm avatar freekmurze avatar gazben avatar igorbabko avatar ivanmagdic avatar juukie avatar masterix21 avatar michael-ow avatar michaelhappelolsen avatar miclf avatar mpbarlow avatar naoray avatar rigby90 avatar robjstanley avatar sadeghpm avatar stancl avatar telkins avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.