Download the PHP package skillup/tenant-scope without Composer
On this page you can find all versions of the php package skillup/tenant-scope. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download skillup/tenant-scope
More information about skillup/tenant-scope
Files in skillup/tenant-scope
Download skillup/tenant-scope
More information about skillup/tenant-scope
Files in skillup/tenant-scope
Vendor skillup
Package tenant-scope
Short Description Strong Global Scope package for Laravel multi-tenant systems
License MIT
Package tenant-scope
Short Description Strong Global Scope package for Laravel multi-tenant systems
License MIT
Please rate this library. Is it a good library?
Informations about the package tenant-scope
Tenant Scope (Strong Global Scope for Laravel)
This package provides shared tenant_id global scoping across Laravel services.
Installation
1. Install via Composer
If you're using it locally, add the repo to your composer.json:
2. Publish Config (Optional)
3. Usage in Model
4. Set Tenant Context on (Request, Jobs, Artisan)
Unit tests In your Background jobs , Artisan commands and Unit tests:
5. Set Tenant Context from Middleware
Once your package is installed:
- The middleware is auto-registered as
- You can get from or
- You can use it in routes:
How to Use in Microservices
- Include the package via Composer
- Call
TenantContext::setTenantId($id)early in the request lifecycle - Add
use BelongsToTenanton all tenant-scoped models
Indexing Best Practice
In Laravel migration:
All versions of tenant-scope with dependencies
PHP Build Version
Package Version
The package skillup/tenant-scope contains the following files
Loading the files please wait ...