PHP code example of rndwiga / laravel-multi-db-tenant
1. Go to this page and download the library: Download rndwiga/laravel-multi-db-tenant 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/ */
rndwiga / laravel-multi-db-tenant example snippets
php artisan vendor:publish
php artisan tenant:basemodels
php artisan tenant:folders
$this->middleware('auth');
$this->middleware('authTenant'); //This is automatically pushed to laravel's kernel