PHP code example of sadeghpm / xshop-multitenancy
1. Go to this page and download the library: Download sadeghpm/xshop-multitenancy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sadeghpm / xshop-multitenancy example snippets
'landlord'=>[
'driver' => 'sqlite',
'database' => database_path('tenant-db.sqlite'),
'prefix' => '',
],
'tenant'=>[
'driver' => 'sqlite',
'database' => null,
'prefix' => '',
],
bash
php artisan multitenancy:setup
bash
php artisan multitenancy:create-tenant