Download the PHP package acdphp/laravel-multitenancy without Composer
On this page you can find all versions of the php package acdphp/laravel-multitenancy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download acdphp/laravel-multitenancy
More information about acdphp/laravel-multitenancy
Files in acdphp/laravel-multitenancy
Download acdphp/laravel-multitenancy
More information about acdphp/laravel-multitenancy
Files in acdphp/laravel-multitenancy
Vendor acdphp
Package laravel-multitenancy
Short Description Laravel multi-tenancy model scoping and automatic tenancy assignment.
License MIT
Package laravel-multitenancy
Short Description Laravel multi-tenancy model scoping and automatic tenancy assignment.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-multitenancy
Laravel Multitenancy
Laravel multi-tenancy model scoping and automatic tenancy assignment.
Installation
This package will resolve the current tenant based on the resolved authenticated user's tenant key value.
Example Usage
Scoping from parent relationship
Manually setting the tenant
- In the registration, for example, tenancy isn't set because it's a non-authenticated endpoint. The tenant has to be manually assigned.
Bypassing Scope
-
Sometimes, it's needed to bypass scoping when accessing a model that belongs to a tenant.
- Or by using the middleware.
Bypassing Automatic Tenancy Assignment
-
It's also possible to bypass auto-tenancy assignments.
- Or by using the middleware.
Modifying config
-
Publish config
- Change the column name to look for tenancy in models.
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-multitenancy with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package acdphp/laravel-multitenancy contains the following files
Loading the files please wait ....