Skip to content

Grizi7/Multi-Tenancy

Repository files navigation

About This Project

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.

Features

  • 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.

Installation

  1. Clone the repository:
    git clone https://github.com/Grizi7/multi-tenancy.git
  2. Navigate to the project directory:
    cd multi-tenancy
  3. Install dependencies:
    composer install
  4. Set up your environment variables by copying the .env.example file:
    cp .env.example .env
  5. Run the migrations for the system:
    php artisan system:migrate
  6. Run the seeders for the system:
    php artisan system:seed
  7. Run the migrations for the tenants:
    php artisan tenants:migrate
  8. Run the seeders for the tenants:
    php artisan tenants:seed

Usage

To start the development server, run:

php artisan serve

You can now access the application at 127.0.0.1:8000.

License

This project is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages