PHP code example of joaovdiasb / laravel-multi-tenancy

1. Go to this page and download the library: Download joaovdiasb/laravel-multi-tenancy 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/ */

    

joaovdiasb / laravel-multi-tenancy example snippets

bash
php artisan vendor:publish --provider="Joaovdiasb\LaravelMultiTenancy\LaravelMultiTenancyServiceProvider" && php artisan migrate --path=./database/migrations/tenant
bash
php artisan tenant:add {name?} {reference?} {db_name?} {db_user?} {db_password?} {db_host?} {db_port?}
bash
php artisan tenant:migrate {tenant?} {--fresh} {--seed}
bash
php artisan tenant:seed {tenant?} {--class=*}
bash
php artisan tenant:backup {tenant?}