mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:34:03 +00:00
prepare for public beta
This commit is contained in:
parent
79444723dd
commit
855ba91508
5 changed files with 12 additions and 11 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- laravel: "^11.0"
|
- laravel: "^11.0"
|
||||||
php: "8.3"
|
php: "8.4"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://laravel.com"><img alt="Laravel 10.x" src="https://img.shields.io/badge/laravel-10.x-red.svg"></a>
|
<a href="https://laravel.com"><img alt="Laravel 11.x" src="https://img.shields.io/badge/laravel-10.x-red.svg"></a>
|
||||||
<a href="https://packagist.org/packages/stancl/tenancy"><img alt="Latest Stable Version" src="https://poser.pugx.org/stancl/tenancy/version"></a>
|
<a href="https://packagist.org/packages/stancl/tenancy"><img alt="Latest Stable Version" src="https://poser.pugx.org/stancl/tenancy/version"></a>
|
||||||
<a href="https://github.com/stancl/tenancy/actions"><img alt="GitHub Actions CI status" src="https://github.com/stancl/tenancy/workflows/CI/badge.svg"></a>
|
<a href="https://github.com/stancl/tenancy/actions"><img alt="GitHub Actions CI status" src="https://github.com/stancl/tenancy/workflows/CI/badge.svg"></a>
|
||||||
<a href="https://github.com/stancl/tenancy/blob/3.x/DONATIONS.md"><img alt="Donate" src="https://img.shields.io/badge/Donate-%3C3-red"></a>
|
<a href="https://github.com/stancl/tenancy/blob/3.x/DONATIONS.md"><img alt="Donate" src="https://img.shields.io/badge/Donate-%3C3-red"></a>
|
||||||
|
|
@ -19,11 +19,9 @@ You won't have to change a thing in your application's code.
|
||||||
- :heavy_check_mark: No replacing of Laravel classes (`Cache`, `Storage`, ...) with tenancy-aware classes
|
- :heavy_check_mark: No replacing of Laravel classes (`Cache`, `Storage`, ...) with tenancy-aware classes
|
||||||
- :heavy_check_mark: Built-in tenant identification based on hostname (including second level domains)
|
- :heavy_check_mark: Built-in tenant identification based on hostname (including second level domains)
|
||||||
|
|
||||||
### [Documentation](https://tenancyforlaravel.com/docs/v3/)
|
### [Documentation](https://tenancy-v4.pages.dev/)
|
||||||
|
|
||||||
Documentation can be found here: https://tenancyforlaravel.com/docs/v3/
|
Documentation can be found here: https://tenancy-v4.pages.dev/
|
||||||
|
|
||||||
The repository with the documentation source code can be found here: [stancl/tenancy-docs](https://github.com/stancl/tenancy-docs).
|
|
||||||
|
|
||||||
### [Need help?](https://github.com/stancl/tenancy/blob/3.x/SUPPORT.md)
|
### [Need help?](https://github.com/stancl/tenancy/blob/3.x/SUPPORT.md)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -195,10 +195,11 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
* return RouteFacade::post('/livewire/update', $handle)->middleware(['web', 'universal']);
|
* return RouteFacade::post('/livewire/update', $handle)->middleware(['web', 'universal']);
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
if (InitializeTenancyByRequestData::inGlobalStack()) {
|
|
||||||
FortifyRouteBootstrapper::$fortifyHome = 'dashboard';
|
// if (InitializeTenancyByRequestData::inGlobalStack()) {
|
||||||
TenancyUrlGenerator::$prefixRouteNames = false;
|
// FortifyRouteBootstrapper::$fortifyHome = 'dashboard';
|
||||||
}
|
// TenancyUrlGenerator::$prefixRouteNames = false;
|
||||||
|
// }
|
||||||
|
|
||||||
if (tenancy()->globalStackHasMiddleware(config('tenancy.identification.path_identification_middleware'))) {
|
if (tenancy()->globalStackHasMiddleware(config('tenancy.identification.path_identification_middleware'))) {
|
||||||
TenancyUrlGenerator::$prefixRouteNames = true;
|
TenancyUrlGenerator::$prefixRouteNames = true;
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,7 @@ return [
|
||||||
* You can customize the grants given to these users by changing the $grants property.
|
* You can customize the grants given to these users by changing the $grants property.
|
||||||
*/
|
*/
|
||||||
// 'mysql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledMySQLDatabaseManager::class,
|
// 'mysql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledMySQLDatabaseManager::class,
|
||||||
|
// 'pgsql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledPostgreSQLDatabaseManager::class,
|
||||||
// 'sqlsrv' => Stancl\Tenancy\TenantDatabaseManagers\PermissionControlledMicrosoftSQLServerDatabaseManager::class,
|
// 'sqlsrv' => Stancl\Tenancy\TenantDatabaseManagers\PermissionControlledMicrosoftSQLServerDatabaseManager::class,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -211,6 +212,7 @@ return [
|
||||||
* want to separate tenant DBs by schemas rather than databases.
|
* want to separate tenant DBs by schemas rather than databases.
|
||||||
*/
|
*/
|
||||||
// 'pgsql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PostgreSQLSchemaManager::class, // Separate by schema instead of database
|
// 'pgsql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PostgreSQLSchemaManager::class, // Separate by schema instead of database
|
||||||
|
// 'pgsql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledPostgreSQLSchemaManager::class, // Also permission controlled
|
||||||
],
|
],
|
||||||
|
|
||||||
// todo@docblock
|
// todo@docblock
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2",
|
"php": "^8.4",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"illuminate/support": "^10.1|^11.3",
|
"illuminate/support": "^10.1|^11.3",
|
||||||
"laravel/tinker": "^2.0",
|
"laravel/tinker": "^2.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue