This package allows you to run multiple websites using the same Laravel application while keeping tenant specific data separated for fully independent multi-domain setups.
Clone down the repository:
git clone https://github.com/filip-codes/laravel-tenancy.git laravel-tenancyInstall the dependencies:
cd laravel-tenancy
composer install
npm installCopy the .env.example file to .env:
cp .env.example .envGenerate the application key:
php artisan key:generateSet up your .env file with your database credentials and run php artisan migrate to create all central tables.
Change your central_domain in the config/tenancy.php file.