├── .codecov.yml ├── .env.testing ├── .github └── workflows │ └── run_tests.yml ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── composer.json ├── config └── multitenancy.php ├── database └── migrations │ └── create_tenants_table.php.stub └── src ├── Console ├── BaseCommand.php ├── TenantAddCommand.php ├── TenantBackupCleanupCommand.php ├── TenantBackupCommand.php ├── TenantMigrateCommand.php └── TenantSeedCommand.php ├── Exceptions ├── DatabaseException.php └── TenantException.php ├── Http └── Middleware │ └── TenantChangeConnection.php ├── LaravelMultiTenancyFacade.php ├── LaravelMultiTenancyServiceProvider.php ├── Model └── Tenant.php ├── Traits └── MultitenancyConfig.php └── Utils └── Database ├── Contracts └── DatabaseType.php ├── Database.php └── DatabaseTypes └── MySql.php /.codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/.codecov.yml -------------------------------------------------------------------------------- /.env.testing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/.env.testing -------------------------------------------------------------------------------- /.github/workflows/run_tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/.github/workflows/run_tests.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/composer.json -------------------------------------------------------------------------------- /config/multitenancy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/config/multitenancy.php -------------------------------------------------------------------------------- /database/migrations/create_tenants_table.php.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/database/migrations/create_tenants_table.php.stub -------------------------------------------------------------------------------- /src/Console/BaseCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Console/BaseCommand.php -------------------------------------------------------------------------------- /src/Console/TenantAddCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Console/TenantAddCommand.php -------------------------------------------------------------------------------- /src/Console/TenantBackupCleanupCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Console/TenantBackupCleanupCommand.php -------------------------------------------------------------------------------- /src/Console/TenantBackupCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Console/TenantBackupCommand.php -------------------------------------------------------------------------------- /src/Console/TenantMigrateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Console/TenantMigrateCommand.php -------------------------------------------------------------------------------- /src/Console/TenantSeedCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Console/TenantSeedCommand.php -------------------------------------------------------------------------------- /src/Exceptions/DatabaseException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Exceptions/DatabaseException.php -------------------------------------------------------------------------------- /src/Exceptions/TenantException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Exceptions/TenantException.php -------------------------------------------------------------------------------- /src/Http/Middleware/TenantChangeConnection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Http/Middleware/TenantChangeConnection.php -------------------------------------------------------------------------------- /src/LaravelMultiTenancyFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/LaravelMultiTenancyFacade.php -------------------------------------------------------------------------------- /src/LaravelMultiTenancyServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/LaravelMultiTenancyServiceProvider.php -------------------------------------------------------------------------------- /src/Model/Tenant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Model/Tenant.php -------------------------------------------------------------------------------- /src/Traits/MultitenancyConfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Traits/MultitenancyConfig.php -------------------------------------------------------------------------------- /src/Utils/Database/Contracts/DatabaseType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Utils/Database/Contracts/DatabaseType.php -------------------------------------------------------------------------------- /src/Utils/Database/Database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Utils/Database/Database.php -------------------------------------------------------------------------------- /src/Utils/Database/DatabaseTypes/MySql.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaovdiasb/laravel-multi-tenancy/HEAD/src/Utils/Database/DatabaseTypes/MySql.php --------------------------------------------------------------------------------