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-tenancy
Install the dependencies:
cd laravel-tenancy
composer install
npm install
Copy the .env.example
file to .env
:
cp .env.example .env
Generate the application key:
php artisan key:generate
Set 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.