1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 08:44:02 +00:00

prepare for public beta

This commit is contained in:
Samuel Štancl 2024-12-26 05:00:58 +01:00
parent 79444723dd
commit 855ba91508
5 changed files with 12 additions and 11 deletions

View file

@ -17,7 +17,7 @@ jobs:
matrix:
include:
- laravel: "^11.0"
php: "8.3"
php: "8.4"
steps:
- name: Checkout

View file

@ -3,7 +3,7 @@
</p>
<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://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>
@ -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: 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/
The repository with the documentation source code can be found here: [stancl/tenancy-docs](https://github.com/stancl/tenancy-docs).
Documentation can be found here: https://tenancy-v4.pages.dev/
### [Need help?](https://github.com/stancl/tenancy/blob/3.x/SUPPORT.md)

View file

@ -195,10 +195,11 @@ class TenancyServiceProvider extends ServiceProvider
* return RouteFacade::post('/livewire/update', $handle)->middleware(['web', 'universal']);
* });
*/
if (InitializeTenancyByRequestData::inGlobalStack()) {
FortifyRouteBootstrapper::$fortifyHome = 'dashboard';
TenancyUrlGenerator::$prefixRouteNames = false;
}
// if (InitializeTenancyByRequestData::inGlobalStack()) {
// FortifyRouteBootstrapper::$fortifyHome = 'dashboard';
// TenancyUrlGenerator::$prefixRouteNames = false;
// }
if (tenancy()->globalStackHasMiddleware(config('tenancy.identification.path_identification_middleware'))) {
TenancyUrlGenerator::$prefixRouteNames = true;

View file

@ -204,6 +204,7 @@ return [
* You can customize the grants given to these users by changing the $grants property.
*/
// 'mysql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledMySQLDatabaseManager::class,
// 'pgsql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledPostgreSQLDatabaseManager::class,
// 'sqlsrv' => Stancl\Tenancy\TenantDatabaseManagers\PermissionControlledMicrosoftSQLServerDatabaseManager::class,
/**
@ -211,6 +212,7 @@ return [
* 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\PermissionControlledPostgreSQLSchemaManager::class, // Also permission controlled
],
// todo@docblock

View file

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.4",
"ext-json": "*",
"illuminate/support": "^10.1|^11.3",
"laravel/tinker": "^2.0",