mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
Get multiple envs (redis/db) to run correctly
This commit is contained in:
parent
9c9858e97e
commit
8565cc7acc
19 changed files with 31 additions and 35 deletions
|
|
@ -52,7 +52,9 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
{
|
||||
$this->mergeConfigFrom(__DIR__ . '/../assets/config.php', 'tenancy');
|
||||
|
||||
$this->app->bind(Contracts\StorageDriver::class, $this->app['config']['tenancy.storage_driver']);
|
||||
$this->app->bind(Contracts\StorageDriver::class, function ($app) {
|
||||
return $app->make($app['config']['tenancy.storage_driver']);
|
||||
});
|
||||
$this->app->bind(Contracts\UniqueIdentifierGenerator::class, $this->app['config']['tenancy.unique_id_generator']);
|
||||
$this->app->singleton(DatabaseManager::class);
|
||||
$this->app->singleton(TenantManager::class);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue