1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

resolve more todos

This commit is contained in:
Samuel Štancl 2025-02-20 14:33:51 +01:00
parent a213ab0ee3
commit c8eb4a0de5
2 changed files with 10 additions and 9 deletions

View file

@ -213,7 +213,14 @@ return [
// 'pgsql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledPostgreSQLSchemaManager::class, // Also permission controlled // 'pgsql' => Stancl\Tenancy\Database\TenantDatabaseManagers\PermissionControlledPostgreSQLSchemaManager::class, // Also permission controlled
], ],
// todo0 /*
* Drop tenant databases when `php artisan migrate:fresh` is used.
* You may want to use this locally since deleting tenants only
* deletes their databases when they're deleted individually, not
* when the records are mass deleted from the database.
*
* Note: This overrides the default MigrateFresh command.
*/
'drop_tenant_databases_on_migrate_fresh' => false, 'drop_tenant_databases_on_migrate_fresh' => false,
], ],
@ -402,7 +409,6 @@ return [
/** /**
* Make all routes central, tenant, or universal by default. * Make all routes central, tenant, or universal by default.
* todo@earlyIdReview todo0
* *
* To override the default route mode, apply the middleware of another route mode ('central', 'tenant', 'universal') to the route. * To override the default route mode, apply the middleware of another route mode ('central', 'tenant', 'universal') to the route.
*/ */

View file

@ -36,13 +36,8 @@ class RootUrlBootstrapper implements TenancyBootstrapper
protected string|null $originalRootUrl = null; protected string|null $originalRootUrl = null;
/** /**
* You may want to selectively enable or disable this bootstrapper in specific tests. * Overriding the root url may cause issues in *some* tests, so you can disable
* For instance, when using `Livewire::test()` this bootstrapper can cause problems, * the behavior by setting this property to false.
* due to an internal Livewire route, so you may want to disable it, while in tests
* that are generating URLs in things like mails, the bootstrapper should be used
* just like in any queued job.
*
* todo0 update docblock
*/ */
public static bool $rootUrlOverrideInTests = true; public static bool $rootUrlOverrideInTests = true;