miracuthbert/laravel-multi-tenancy
| Install | |
|---|---|
composer require miracuthbert/laravel-multi-tenancy |
|
| Latest Version: | 1.11.2 |
| PHP: | ^7.3|^8.0 |
| License: | MIT |
| Last Updated: | Mar 26, 2024 |
| Links: | GitHub · Packagist |
Laravel Multi-Tenancy
A single database and multi-database multi-tenancy package for Laravel 5.8 and up.
For the full installation, configuration and usage, see the Documentation.
Installation
You can install the package via composer:
composer require miracuthbert/laravel-multi-tenancy
Setup
The package takes advantage of Laravel Auto-Discovery, so it doesn't require you to manually add the ServiceProvider.
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Miracuthbert\Multitenancy\LaravelMultiTenancyServiceProvider::class
Run the following command in your console: php artisan tenancy:setup
This will setup:
- The package config file
- The tenant routes file
- TenantDatabaseSeeder (by default used only by the
multidriver) - Plus a tenant
modelandmigrationfile if you passed a model name to the--modeloption. See below for more.
You need to setup some of the required keys first in the
config/tenancy.phpfile before migrating the database
See the Documentation.
Security Vulnerabilities
If you discover a security vulnerability, please send an e-mail to Cuthbert Mirambo via miracuthbert@gmail.com. All security vulnerabilities will be promptly addressed.
Credits
License
Laravel Multi-Tenancy is licensed under GPL-3.0-only. Please see the license file for more information.
Related Packages
Laravel Artisan command to migrate postgres multi tentant
Run multiple websites using the same laravel installation while keeping tenant s...
Run multiple websites using the same laravel installation while keeping tenant s...
A multi-tenancy implementation that uses Laravel and Doctrine.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.11.2 | ^7.3| | >=6.0 | MIT | |
| 1.11.1 | ^7.3| | >=6.0 | MIT | |
| 1.11.0 | ^7.3| | >=6.0 | MIT | |
| 1.10.1 | ^7.3| | >=6.0 | MIT | |
| 1.10.0 | ^7.3| | >=6.0 | MIT | |
| 1.9.0 | ^7.3| | >=6.0 | MIT | |
| 1.8.1 | ^7.3| | >=6.0 | MIT | |
| 1.8.0 | ^7.3| | >=6.0 | MIT | |
| 1.7.1 | ^7.3| | >=6.0 | MIT | |
| 1.7.0 | ^7.3| | >=6.0 | MIT | |
| 1.6.3 | ^7.3| | >=6.0 | MIT | |
| 1.6.2 | ^7.3| | >=6.0 | MIT | |
| 1.6.1 | ^7.3| | >=6.0 | MIT | |
| 1.6.0 | ^7.3| | >=6.0 | MIT | |
| 1.5.4 | ^7.3| | >=6.0 | MIT | |
| 1.5.3 | ^7.3| | >=6.0 | MIT | |
| 1.5.2 | ^7.3| | >=6.0 | MIT | |
| 1.5.1 | ^7.3| | >=6.0 | MIT | |
| 1.5.0 | ^7.3| | >=6.0 | MIT | |
| 1.4.0 | ^7.3| | >=6.0 | MIT | |
| 1.3.4 | ^7.3| | >=6.0 | MIT | |
| 1.3.3 | ^7.3| | >=6.0 | MIT | |
| 1.3.2 | ^7.3| | >=6.0 | MIT | |
| 1.3.1 | ^7.3| | >=6.0 | MIT | |
| 1.3.0 | ^7.3| | >=6.0 | MIT | |
| 1.2.1 | ^7.3| | >=6.0 | MIT | |
| 1.2.0 | ^7.3| | >=6.0 | MIT | |
| 1.1.4 | >=7.3.0 | >=6.0 | MIT | |
| 1.1.3 | >=7.3.0 | >=6.0 | MIT | |
| 1.1.2 | >=7.3.0 | >=6.0 | MIT |
Showing the latest 30 of 36. See every release on Packagist
Pre-releases (1)
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.6.0-beta | ^7.3| | >=6.0 | MIT |