1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:14:04 +00:00

[1.8.0] Custom id scheme (#108)

* Add UniqueIdentifierGenerators

* Apply fixes from StyleCI
This commit is contained in:
Samuel Štancl 2019-08-21 20:29:53 +02:00 committed by GitHub
parent 787063ed73
commit f590e2ce2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 3 deletions

View file

@ -125,7 +125,9 @@ class TenancyServiceProvider extends ServiceProvider
$this->app->bind(ServerConfigManager::class, $this->app['config']['tenancy.server.manager']);
$this->app->singleton(DatabaseManager::class);
$this->app->singleton(TenantManager::class, function ($app) {
return new TenantManager($app, $app[StorageDriver::class], $app[DatabaseManager::class]);
return new TenantManager(
$app, $app[StorageDriver::class], $app[DatabaseManager::class], $app[$app['config']['tenancy.unique_id_generator']]
);
});
$this->app->singleton(Migrate::class, function ($app) {