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

Add note about phpredis

This commit is contained in:
Samuel Štancl 2019-07-03 13:23:02 +02:00
parent 03ee52e62a
commit 998f065338
5 changed files with 8 additions and 5 deletions

View file

@ -15,7 +15,7 @@ trait BootstrapsTenancy
public function bootstrap()
{
$this->switchDatabaseConnection();
if ($this->app['config']['tenancy.redis.multitenant']) {
if ($this->app['config']['tenancy.redis.tenancy']) {
$this->setPhpRedisPrefix($this->app['config']['tenancy.redis.prefixed_connections']);
}
$this->tagCache();

View file

@ -12,7 +12,7 @@ return [
'suffix' => '',
],
'redis' => [
'multitenant' => true,
'tenancy' => false,
'prefix_base' => 'tenant',
'prefixed_connections' => [
'default',