codexshaper/mongodb-multi-tenancy

Laravel Multi Tenancy with MongoDB

v0.7 2019-05-09 18:34 UTC

This package is auto-updated.

Last update: 2024-04-17 08:03:26 UTC


README

Laravel Multi Tenancy for MongoDB

#Install

composer require codexshaper/mongodb-multi-tenancy

#Publish Configs and Migrations

php artisan vendor:publish --tag=tenancy

#Tenant Commands

tenant:create {website} {hostname}
tenant:delete {host}
tenant:migrate
tenant:migrate:refresh

Example: php artisan tenant:create dev dev.codexshaper.com