PHP code example of apsg / multisite

1. Go to this page and download the library: Download apsg/multisite 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/ */

    

apsg / multisite example snippets


\Multisite::config('some.key');

config('multisite.{current_domain}.some.key');

\Multisite::domain();
bash
php artisan vendor:publish --tag=multisite.config