mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:24:04 +00:00
UrlGenerator: set defaults based on config; request data: move config to config file+resolver
This commit is contained in:
parent
27685ffe5a
commit
bba649a33c
6 changed files with 139 additions and 33 deletions
|
|
@ -117,7 +117,7 @@ return [
|
|||
'cache_store' => null, // null = default
|
||||
],
|
||||
Resolvers\PathTenantResolver::class => [
|
||||
'tenant_parameter_name' => 'tenant',
|
||||
'tenant_parameter_name' => 'tenant', // todo0 test changing this
|
||||
'tenant_model_column' => null, // null = tenant key
|
||||
'tenant_route_name_prefix' => null, // null = 'tenant.'
|
||||
'allowed_extra_model_columns' => [], // used with binding route fields
|
||||
|
|
@ -127,6 +127,10 @@ return [
|
|||
'cache_store' => null, // null = default
|
||||
],
|
||||
Resolvers\RequestDataTenantResolver::class => [
|
||||
'header' => 'X-Tenant',
|
||||
'cookie' => 'tenant', // todo0 test in url generator
|
||||
'query_parameter' => 'tenant',
|
||||
|
||||
'cache' => false,
|
||||
'cache_ttl' => 3600, // seconds
|
||||
'cache_store' => null, // null = default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue