spatie/laravel-multitenancy
소개
Laravel 앱을 여러 테넌트가 사용할 수 있도록 합니다
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThis 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_landlordlaravel_mt_tenant_1laravel_mt_tenant_2
The cache tests also require Redis and the PHP Redis extension. To include the real HTTP tests for Octane, download RoadRunner after installing the Composer dependencies:
vendor/bin/rr get-binary --no-config -n
Without the RoadRunner binary, those HTTP tests are skipped. CI always installs it.
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've found a bug regarding security please mail [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.
관련 프로젝트 살펴보기
불러오는 중…
