mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:54:05 +00:00
[2.x] Tenant config (#145)
* TenantConfig first draft * Apply fixes from StyleCI * Add unsetTenantConfig * Fix DB storage driver bug, add regression test (tenant_data_can_be_set_during_creation) * Add tests & config keys * Apply fixes from StyleCI
This commit is contained in:
parent
d70e561106
commit
56a2bdf5af
5 changed files with 109 additions and 1 deletions
|
|
@ -79,9 +79,13 @@ return [
|
|||
// Features are classes that provide additional functionality
|
||||
// not needed for tenancy to be bootstrapped. They are run
|
||||
// regardless of whether tenancy has been initialized.
|
||||
Stancl\Tenancy\Features\TenantConfig::class,
|
||||
Stancl\Tenancy\Features\TelescopeTags::class,
|
||||
Stancl\Tenancy\Features\TenantRedirect::class,
|
||||
],
|
||||
'storage_to_config_map' => [
|
||||
// 'paypal_api_key' => 'services.paypal.api_key',
|
||||
],
|
||||
'home_url' => '/app',
|
||||
'migrate_after_creation' => false, // run migrations after creating a tenant
|
||||
'delete_database_after_tenant_deletion' => false, // delete the tenant's database after deleting the tenant
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue