Download the PHP package sadeghpm/xshop-multitenancy without Composer
On this page you can find all versions of the php package sadeghpm/xshop-multitenancy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package xshop-multitenancy
xShop Multitenancy Package
[!NOTE] This package provides multitenancy support for xShop, facilitating the management of multiple tenant databases.
New Features
- Database creation for each tenant.
- Tenant-specific migrations and seeders.
- Automatic admin user creation for tenants.
Installation
To install the package, follow these steps:
Multitenancy Setup
Initial Setup
Run the multitenancy:setup command to configure multitenancy:
Change Database config
Add the following line to your config/database.php
file:
Set active connection to tenant in .env
file:
Adding Tenants
To add new tenants, use the multitenancy:create-tenant command:
This command will:
- Ask for the tenant's name and domain.
- Create the tenant in the database.
- Prompt for admin user details and create the admin user for the new tenant.
Commands Summary
multitenancy:setup
: For initial configuration and creating the first tenant.multitenancy:create-tenant
: For adding new tenants.multitenancy:list-tenants
: To list all tenants.
Developed With Love! ❤️
All versions of xshop-multitenancy with dependencies
PHP Build Version
Package Version
Requires
spatie/laravel-multitenancy Version
^4.0
The package sadeghpm/xshop-multitenancy contains the following files
Loading the files please wait ....