Download the PHP package mk-devs/multi-tenant without Composer
On this page you can find all versions of the php package mk-devs/multi-tenant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mk-devs/multi-tenant
More information about mk-devs/multi-tenant
Files in mk-devs/multi-tenant
Download mk-devs/multi-tenant
More information about mk-devs/multi-tenant
Files in mk-devs/multi-tenant
Vendor mk-devs
Package multi-tenant
Short Description Create, migrate and seed different databases dynamiclly without having to change your app connection.
License MIT
Package multi-tenant
Short Description Create, migrate and seed different databases dynamiclly without having to change your app connection.
License MIT
Please rate this library. Is it a good library?
Informations about the package multi-tenant
Laravel Multi-Tenant
Multi-Tenant is a Laravel package that can be used to create, migrate and seed different databases dynamiclly without having to change your app connection.
This is useful for web applications that stores data of each tenant in different database.
Installing
You can install the package via composer:
The package will register itself automatically.
Usage
Installing the packege on your Laravel project will add MultiTenant class as well as helpful artisan commands.
Artisan Commands
php artisan tenant:create database connection
php artisan tenant:migrate database connection --path
php artisan tenant:refresh database connection
php artisan tenant:rollback database connection
php artisan tenant:seed database connection --class
Available Methods
create
Create a new databaseparams: [database, connection]
migrate
Run migrate for specific databaseparams: [database, connection, path]
refresh
Reset and re-run all migrationsparams: [database, connection]
rollback
Rollback the last database migrationparams: [database, connection]
seed
Run seed for specific databaseparams: [database, connection, class]
set
Change app database connection in run timeparams: [database, connection]
Params
Param | Required | Default |
---|---|---|
database | true | null |
connection | false | Current connection |
class | false | null |
path | false | null |
Use Cases
License
Multi-Tenant is open-sourced software licensed under the MIT
All versions of multi-tenant with dependencies
PHP Build Version
Package Version
No informations.
The package mk-devs/multi-tenant contains the following files
Loading the files please wait ....