This project is a multi-tenancy application built with Laravel. It allows you to manage multiple tenants within a single Laravel application, providing isolation and customization for each tenant.
- Tenant management with separate databases or shared database with tenant-specific tables.
- Middleware for tenant identification and routing.
- Customizable tenant configurations.
- Seamless integration with Laravel's built-in features.
- Clone the repository:
git clone https://github.com/Grizi7/multi-tenancy.git
- Navigate to the project directory:
cd multi-tenancy
- Install dependencies:
composer install
- Set up your environment variables by copying the
.env.example
file:cp .env.example .env
- Run the migrations for the system:
php artisan system:migrate
- Run the seeders for the system:
php artisan system:seed
- Run the migrations for the tenants:
php artisan tenants:migrate
- Run the seeders for the tenants:
php artisan tenants:seed
To start the development server, run:
php artisan serve
You can now access the application at 127.0.0.1:8000
.
This project is open-sourced software licensed under the MIT license.