mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 08:24:03 +00:00
Refactor cached tenant resolvers with decorator pattern
This commit is contained in:
parent
8e3b74f9d1
commit
97e45ab9cc
15 changed files with 424 additions and 251 deletions
|
|
@ -196,4 +196,28 @@ return [
|
|||
'--class' => 'DatabaseSeeder', // root seeder class
|
||||
// '--force' => true,
|
||||
],
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
'tenant_resolvers' => [
|
||||
\Stancl\Tenancy\Resolvers\DomainTenantResolver::class => [
|
||||
'cache' => false,
|
||||
'cache_ttl' => 3600,
|
||||
'cache_store' => null,
|
||||
],
|
||||
|
||||
\Stancl\Tenancy\Resolvers\PathTenantResolver::class => [
|
||||
'parameter_name' => 'tenant',
|
||||
'cache' => false,
|
||||
'cache_ttl' => 3600,
|
||||
'cache_store' => null,
|
||||
],
|
||||
|
||||
\Stancl\Tenancy\Resolvers\RequestDataTenantResolver::class => [
|
||||
'cache' => false,
|
||||
'cache_ttl' => 3600,
|
||||
'cache_store' => null,
|
||||
]
|
||||
]
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue