mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 11:54:04 +00:00
* Specify namespace on global functions (fix #35) * merge * Revert some \ additions * small fixes
This commit is contained in:
parent
35abb6191d
commit
97ec172fd4
6 changed files with 9 additions and 12 deletions
|
|
@ -26,7 +26,7 @@ trait BootstrapsTenancy
|
|||
public function setPhpRedisPrefix($connections = ['default'])
|
||||
{
|
||||
foreach ($connections as $connection) {
|
||||
$prefix = config('tenancy.redis.prefix_base') . $this->tenant['uuid'];
|
||||
$prefix = $this->app['config']['tenancy.redis.prefix_base'] . $this->tenant['uuid'];
|
||||
$client = Redis::connection($connection)->client();
|
||||
$client->setOption($client::OPT_PREFIX, $prefix);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue